Constructor Summary
| Public Constructor | ||
| public |
constructor(initV: any, encapsulate: boolean) Create an instance of class AsyncFlow. |
|
Member Summary
| Public Members | ||
| public |
the instance of ErrorM. |
|
| public |
flow: any keep initial flow (pipe) value. |
|
| public |
the instance of Maybe. |
|
Method Summary
| Public Methods | ||
| public |
Chains the operations on a monadic values. |
|
| public |
Creates branch from a flow (pipe). |
|
| public |
subscribe(): T Extract value from a flow (pipe). |
|
Inherited Summary
| From class Monad | ||
| public abstract |
bind(f: MF<T, U>|D<T>, v: *): Promise<U> | Pr<U> | Error | boolean | void Binds transformation function and underlying value to the monad. |
|
| protected |
Takes Error or string return Error. |
|
| protected |
Produces result after execution f(v). |
|
Public Constructors
Public Members
Public Methods
public bind(f: function(v: T), v: any): Flow<T> source
Chains the operations on a monadic values.
Override:
Monad#bindParams:
| Name | Type | Attribute | Description |
| f | function(v: T) | transformation function for a main flow value. |
|
| v | any |
|
underlying value for a monad. |