Contains a list of convenient functions that cover common use cases for tasks.
Analogous to Task.sequence.
Schedule a list of tasks to be performed in parallel as opposed to in series
as is the case with Task.sequence.
Note that there is no guarantee that the tasks will be performed or complete
in the order you have stated. This is why you may use the returned Process.Id
for re-ordering or consider integrating a sorting mechanism within your program.
Delay a task by a given amount of time in milliseconds.
Runs a task repeatedly every given milliseconds.
loop 1000 myTask -- Runs `myTask` every secondCommand the runtime system to perform a task that is guaranteed to
not fail. The most important argument is the
Task
which describes what you want to happen. But you also need to provide
a function to tag the success outcome, so as to have a message to feed
back into your application. Unlike with the standard
perform,
you need not provide a function to tag a failing outcome, because the
Never
in the type Task Never a expresses that no possibly failing task is
allowed in that place anyway.
A typical use of the function is Date.now |> performFailproof CurrentDate.
Similar to
Task.sequence. The difference withTask.sequenceis that it doesn't return anerrorif any individual task fails. If an error is encountered, then this function will march on and perform the next task ignoring the error.