CpsLogicStreamConcurrenctMonad
Attributes
- Graph
-
- Supertypes
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
Inherited types
Attributes
- Inherited from:
- CpsConcurrentLogicMonadInstanceContext
Value members
Inherited methods
run op in the context environment.
run op in the context environment.
Attributes
- Definition Classes
- Inherited from:
- CpsConcurrentLogicMonadInstanceContext
empty solution set. (same as 'mzero')
represent error e
in monadic context.
represent error e
in monadic context.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
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
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
flatMap over result of checked evaluation of A
flatMap over result of checked evaluation of A
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Wrap and flatten of monadic expression..
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
Flatten observer into computation.
Flatten observer into computation.
Value parameters
- fma
-
- observer to flatten
Attributes
- Returns
-
- computation, which adopt observer wrapper
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Attributes
- Inherited from:
- CpsLogicMonad
transform r
into pure value or error.
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
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
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
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
Attributes
- Inherited from:
- CpsLogicMonad
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
map a function f
over fa
map over result of checked evaluation of A
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'.
mplus in haskell LogicT Synonym for 'orElse'.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
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
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
mzero in haskell LogicT Synonym for 'empty'.
mzero in haskell LogicT Synonym for 'empty'.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
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
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
- Inherited from:
- CpsConcurrentLogicMonad
Pure - wrap value t
inside monad.
Pure - wrap value t
inside monad.
Note, that pure use eager evaluation, which is different from Haskell.
Attributes
- Definition Classes
- Inherited from:
- CpsLogicStreamMonadBase
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
-
Definition Classes
-
Inherited from:
-
CpsLogicStreamMonadBase
convert M[A] to AsyncList[F,A]
convert M[A] to AsyncList[F,A]
Attributes
-
Returns
-
AsyncList[F,A]
-
Inherited from:
-
CpsConcurrentLogicMonad
def toStream[R, A](ma: LogicStreamT[F, A])(using R: CpsAsyncEmitAbsorber[R] { type Monad = F; type Context; type Element = A; }): R
convert M[A] to AsyncStream (i.e. FS2, AkkaStream, etc...)
convert M[A] to AsyncStream (i.e. FS2, AkkaStream, etc...)
Attributes
-
Inherited from:
-
CpsConcurrentLogicMonad
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.
Attributes
-
Inherited from:
-
CpsLogicMonad
ensure that action
will run before getting value from fa
def withActionAsync[A](fa: LogicStreamT[F, A])(action: () => LogicStreamT[F, Unit]): [A] =>> LogicStreamT[F, A][A]
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
def withAsyncAction[A](fa: LogicStreamT[F, A])(action: => LogicStreamT[F, Unit]): [A] =>> LogicStreamT[F, A][A]
return result of fa
after completition of action
.
def withAsyncErrorHandler[A](fa: => LogicStreamT[F, A])(f: Throwable => LogicStreamT[F, A]): [A] =>> LogicStreamT[F, A][A]
Attributes
-
Inherited from:
-
CpsTrySupport
def withAsyncFinalizer[A](fa: => LogicStreamT[F, A])(f: => LogicStreamT[F, Unit]): [A] =>> LogicStreamT[F, A][A]
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