libretto.scaletto.impl.futurebased
Members list
Type members
Classlikes
opaque object BridgeImpl extends ScalettoBridge
Attributes
- Supertypes
-
trait ScalettoBridgetrait ClosedBridgetrait CoreBridgeclass Objecttrait Matchableclass AnyShow all
- Self type
-
BridgeImpl.type
object FutureExecutor
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
FutureExecutor.type
class FutureExecutor(ec: ExecutionContext, scheduler: Scheduler, blockingEC: ExecutionContext) 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
- Supertypes
class SchedulerFromScheduledExecutorService(scheduler: ScheduledExecutorService) extends Scheduler
Attributes
- Supertypes
In this article