StateRTEMachine<S, C, L> class

A state machine for StateReaderTaskEither.

Implemented types
Available Extensions

Constructors

StateRTEMachine(S _state, C context)

Properties

closed bool
true if close has been called
no setter
context → C
The context / environment passed to the StateReaderTaskEither's.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → S
The current state (S) of the machine
no setteroverride
stream Stream<S>
A Stream of state changes
no setteroverride

Methods

close() → void
Closes the internal StreamController
override
evaluate<R>(StateReaderTaskEither<S, C, L, R> state) FutureOr<Either<L, R>>
Run the computation and returns the result only.
evaluateSeq(Iterable<StateReaderTaskEither<S, C, L, dynamic>> arr) FutureOr<Either<L, IList>>
Run the computations in sequence, only returning the results
execute<R>(StateReaderTaskEither<S, C, L, R> state) FutureOr<Either<L, S>>
Run the computation and returns the state only.
executeSeq(Iterable<StateReaderTaskEither<S, C, L, dynamic>> arr) FutureOr<Either<L, IList<S>>>
Run the computations in sequence, only returning the new states
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run<R>(StateReaderTaskEither<S, C, L, R> state) FutureOr<Either<L, dynamic>>
Run the computation and returns a tuple of the result and state.
sequence(Iterable<StateReaderTaskEither<S, C, L, dynamic>> arr) FutureOr<Either<L, IList>>
Run the computations in sequence
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited