AsyncFlow
Extends:
Indirect Implements:
Class AsyncFlow - for composing monads in an async flow (pipe), based on Promise.
Constructor Summary
Public Constructor | ||
public |
constructor(initV: any, encapsulate: boolean) Creates 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 |
Binds initial value to the transformation function. |
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 constructor(initV: any, encapsulate: boolean) source
Creates an instance of class AsyncFlow.
Params:
Name | Type | Attribute | Description |
initV | any |
|
initV - initial value of new flow (pipe). |
encapsulate | boolean |
|
encapsulate - flag, if true then the init value will be cloned. |