FutureAsyncMonadAPI
Default CpsMonad implementation for Future
Attributes
- Graph
- Supertypes
- trait CpsSchedulingMonad[Future]trait CpsConcurrentMonad[Future]trait CpsAsyncMonad[Future]trait CpsTryMonad[Future]trait CpsThrowMonad[Future]trait CpsMonad[Future]trait CpsAwaitable[Future]class Objecttrait Matchableclass Any
Members list
Type members
Inherited types
In eager monad, spawned process can be represented by F[_]
In eager monad, spawned process can be represented by F[_]
Attributes
- Inherited from:
- CpsSchedulingMonad
Value members
Concrete methods
called by the source, which accept callback inside
called by the source, which accept callback inside
Attributes
Evaluate operation in context.
join two computations in such way, that they will execute concurrently. Since Future computation is already spawned, we can not spawn waiting for results here
join two computations in such way, that they will execute concurrently. Since Future computation is already spawned, we can not spawn waiting for results here
Attributes
- Definition Classes
represent error e
in monadic context.
represent error e
in monadic context.
Attributes
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
Attributes
flatMap over result of checked evaluation of A
flatMap over result of checked evaluation of A
Attributes
map a function f
over fa
map a function f
over fa
Attributes
map over result of checked evaluation of A
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
Attributes
restore fa, ie if fa sucessful - return fa, otherwise apply fx to received error.
restore fa, ie if fa sucessful - return fa, otherwise apply fx to received error.
Attributes
- Definition Classes
schedule execution of op somewhere, immediatly. Note, that characteristics of scheduler can vary.
schedule execution of op somewhere, immediatly. Note, that characteristics of scheduler can vary.
Attributes
returns failed Future, because cancellation is not supported.
returns failed Future, because cancellation is not supported.
Attributes
Inherited methods
delegated to applyContext
transform r
into pure value or error.
join spawned immediate monad means to receive those spawing monad.
join spawned immediate monad means to receive those spawing monad.
Attributes
- Inherited from:
- CpsSchedulingMonad
spawnSync
synonym for flatMapTry needed for processing awaits inside mapTry.
synonym for flatMapTry needed for processing awaits inside mapTry.
Attributes
- Inherited from:
- CpsTryMonad
representation of spawnEffect as immediate operation.
schedule execution of op somewhere, immediatly. Note, that characteristics of scheduler can vary. TODO: rename to spawn until we not stabilized
schedule execution of op somewhere, immediatly. Note, that characteristics of scheduler can vary. TODO: rename to spawn until we not stabilized
Attributes
- Inherited from:
- CpsSchedulingMonad
try to evaluate async operation and wrap successful or failed result into F
.
try to evaluate async operation and wrap successful or failed result into F
.
Attributes
- Inherited from:
- CpsTryMonad
try to evaluate synchonious operation and wrap successful or failed result into F
.
try to evaluate synchonious operation and wrap successful or failed result into F
.
Attributes
- Inherited from:
- CpsTryMonad
async shift of tryPure.
ensure that action
will run before getting value from fa
async shift of withAction
.
async shift of withAction
.
This method is substituted instead withAction, when we use await
inside withAction
argument.
Attributes
- Inherited from:
- CpsTryMonad
return result of fa
after completition of action
.