You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task and Coeval need foreach and foreachL methods.
The foreachL operator behaves like map, except that it yields a Task[Unit] and a Coeval[Unit]. And foreach will trigger the evaluation. In case of Task it has to take a Scheduler as an implicit parameter and return a CancelableFuture[Unit], since it cannot be blocking.
Issues included:
- #239: `Task.flatMap` loops should not be auto-cancelable by default
- #226: Add Task.Options with an `autoCancelableRunLoops property`
- #227: Add executeWithFork, executeWithModel and asyncBoundary operators on Task
- #232: Task should use TrampolinedRunnables everywhere it can
- #236: Task and Coeval need `foreach` and `foreachL`
- #238: Add `Coeval.Attempt.get`
Task
andCoeval
needforeach
andforeachL
methods.The
foreachL
operator behaves likemap
, except that it yields aTask[Unit]
and aCoeval[Unit]
. Andforeach
will trigger the evaluation. In case ofTask
it has to take aScheduler
as an implicit parameter and return aCancelableFuture[Unit]
, since it cannot be blocking.Task example:
Coeval example:
The text was updated successfully, but these errors were encountered: