libretto.scaletto.impl.futurebased
Members list
Concise view
Type members
Classlikes
Attributes
- Graph
- Supertypes
- Self type
- BridgeImpl.type
object FutureExecutor
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- FutureExecutor.type
class FutureExecutor(ec: ExecutionContext, scheduler: Scheduler, blockingExecutor: Executor) extends ScalettoExecutor
Executor of FreeScaletto based on Futures and Promises.
Executor of FreeScaletto based on Futures and Promises.
It is known to be flawed by design in that it might create long (potentially infinite) chains of Promises. This could be solved with a custom implementation of promises/futures that support unregistration of listeners.
On top of that, expect bugs, since the implementation is full of unsafe type casts, because Scala's (including Dotty's) type inference cannot cope with the kind of pattern matches found here.
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Graph
- Supertypes