state -package:capability
Embed a simple state action into the monad.
Construct a state monad computation from a state transformer function.
Construct a state monad computation from a state transformer function.
Construct a state monad computation from a function. (The inverse of
runState.)
Determine the state of the reentrant lock.
Note that this is only a snapshot of the state. By the time a program
reacts on its result it may already be out of date.
Apply the function to the current state and return a value.
Apply the function to the current state and return a value.
Note: this function gets an exclusive access to the state for
its duration.
Get the Lua state of this Lua computation.
Create a
Condition from a function that takes a process state
a and returns a
Bool indicating whether the associated
handler should run.
Construct a state monad computation from a state transformer function.
The internal state of the stream
Construct a state monad computation from a function. (The inverse of
runState.)
The current state of the batch operation.
Current state of the batch operation.