CpsConcurrentLogicMonad
Logic monad, where computation is done into known async concurrent monad F[_].
Attributes
- Graph
-
- Supertypes
-
trait CpsLogicMonad[M]trait CpsTryMonad[M]trait CpsTrySupport[M]trait CpsThrowMonad[M]trait CpsThrowSupport[M]trait CpsMonad[M]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class CpsLogicStreamConcurrenctMonad[F]
Members list
Type members
Types
Monad, which can be used to observe values of computation and can be used in map/flatMap/... operations. Usefull for cases, where we should mix logic and async operations. If implementation is LogicStream[F[_],A], that Observer is F[_].
Monad, which can be used to observe values of computation and can be used in map/flatMap/... operations. Usefull for cases, where we should mix logic and async operations. If implementation is LogicStream[F[_],A], that Observer is F[_].
Attributes
Value members
Concrete methods
parallel or: a and b are evaluated concurrently in different fibers results are merged in one stream without delays.
parallel or: a and b are evaluated concurrently in different fibers results are merged in one stream without delays.
Attributes
convert M[A] to AsyncList[F,A]
convert M[A] to AsyncList[F,A]
Attributes
- Returns
-
AsyncList[F,A]
convert M[A] to AsyncStream (i.e. FS2, AkkaStream, etc...)
convert M[A] to AsyncStream (i.e. FS2, AkkaStream, etc...)
Attributes
Inherited methods
run op in the context environment.
run op in the context environment.
Attributes
- Inherited from:
- CpsMonad
empty solution set. (same as 'mzero')
represent error e
in monadic context.
represent error e
in monadic context.
Attributes
- Inherited from:
- CpsTryMonad
Can be viewed as fair And
-- flatMap results are mixed over the all choices in ma
Can be viewed as fair And
-- flatMap results are mixed over the all choices in ma
- in haskell LogicT
Attributes
- Inherited from:
- CpsLogicMonad
bind combinator, which compose f
over fa
bind combinator, which compose f
over fa
Attributes
- Inherited from:
- CpsMonad
flatMap over result of checked evaluation of A
flatMap over result of checked evaluation of A
Attributes
- Inherited from:
- CpsTryMonad
Wrap and flatten of monadic expression..
Wrap and flatten of monadic expression..
Attributes
- Inherited from:
- CpsMonad
Attributes
- Inherited from:
- CpsMonad
Flatten observer into computation.
Flatten observer into computation.
Value parameters
- fma
-
- observer to flatten
Attributes
- Returns
-
- computation, which adopt observer wrapper
- Inherited from:
- CpsLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
transform r
into pure value or error.
transform r
into pure value or error.
Attributes
- Inherited from:
- CpsTryMonad
Split computation into part, which return as first value and rest of computation and return this as observer.
Split computation into part, which return as first value and rest of computation and return this as observer.
Attributes
- Inherited from:
- CpsLogicMonad
ifte -- if/then/else which works not on boolean condition, but on existence of values in computation.
ifte -- if/then/else which works not on boolean condition, but on existence of values in computation.
Value parameters
- a
-
- computation to check
- elsep
-
- what to do if
a
is empty
- what to do if
- thenp
-
- what to do after
a
- what to do after
Attributes
- Inherited from:
- CpsLogicMonad
Can be viewed as fair Or
-- values from both computations are interleaved
Can be viewed as fair Or
-- values from both computations are interleaved
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Inherited from:
- CpsLogicMonad
map a function f
over fa
map a function f
over fa
Attributes
- Inherited from:
- CpsMonad
map over result of checked evaluation of A
map over result of checked evaluation of A
Attributes
- Inherited from:
- CpsTryMonad
synonym for flatMapTry needed for processing awaits inside mapTry.
synonym for flatMapTry needed for processing awaits inside mapTry.
Attributes
- Inherited from:
- CpsTryMonad
mplus in haskell LogicT Synonym for 'orElse'.
Split computation into part, which return as first value and rest of computation and return this as logic stream.
Split computation into part, which return as first value and rest of computation and return this as logic stream.
Attributes
- Inherited from:
- CpsLogicMonad
mzero in haskell LogicT Synonym for 'empty'.
get the first value of computation, discarding all other. head of the list, or soft cut in prolog (scoped inside current computation).
get the first value of computation, discarding all other. head of the list, or soft cut in prolog (scoped inside current computation).
Attributes
- Inherited from:
- CpsLogicMonad
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
Attributes
- Inherited from:
- CpsMonad
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
- Inherited from:
- CpsTryMonad
Create a computation, which explore a
and then
b
end do not start evaluation of b
until all values or a
are explored.
Create a computation, which explore
a
and then
b
end do not start evaluation of b
until all values or a
are explored.
Synonym for MonadPlus 'mplus' or Alternative '<|>' in haskell.
Attributes
Attributes
-
Inherited from:
-
CpsLogicMonad
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.
async shift of tryPure.
Attributes
-
Inherited from:
-
CpsTryMonad
Attributes
-
Inherited from:
-
CpsLogicMonad
ensure that action
will run before getting value from fa
ensure that action
will run before getting value from fa
Attributes
-
Inherited from:
-
CpsTryMonad
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
.
return result of fa
after completition of action
.
Attributes
-
Inherited from:
-
CpsTryMonad
Attributes
-
Inherited from:
-
CpsTrySupport
Attributes
-
Inherited from:
-
CpsTrySupport
Create monadic expression according to the default operation of choosen monad types. (i.e. delaying for effect monads, starting for eager monand, pure by default)
Create monadic expression according to the default operation of choosen monad types. (i.e. delaying for effect monads, starting for eager monand, pure by default)
Attributes
-
Inherited from:
-
CpsMonad
Concrete fields
instance of observer cps monad.
instance of observer cps monad.
Attributes