package task
- Alphabetic
- Public
- Protected
Type Members
- sealed trait Task[+A] extends AnyRef
This task was introduced as a compatibilty layer to ublock bloop migration from monix2.
This task was introduced as a compatibilty layer to ublock bloop migration from monix2. there is an important difference between monix2 and monix3 in cancellation mechanic:
- monix2 - cancel is a signal that triggers
doOnCancel
callbacks and the whole task anyway completes. - monix3 - cancel actually cancel the runLoop of task and turns
CancellableFuture
into incomletable one.
Bloop is hugely relies on
doOnCancel
usage and old cancellation mechanic. Actually, most of bsp-methods are kind of function(Input, State) => State
. runLoop cancellation doesn't fit for bloop at all. So the idea is: perform cancels as in monix2, do an actual execution on monix3. This approach allows to unblock bsp4s/monix/scala upgrades (monix2 isn't supported and isn't published for scala 2.13). In theory we can switch it on some other effect-library and preserve the codebase without significant rewrites. - monix2 - cancel is a signal that triggers