MODULE Task
data
constructor(readonly run: Lazy<Promise<A>>) {}
<B>(fab: Task<(a: A) => B>): Task<B>
<B, C>(this: Task<(b: B) => C>, fb: Task<B>): Task<C>
<B>(f: (a: A) => Task<B>): Task<B>
(): string
<B>(f: (a: A) => B): Task<B>
(): string
instance
Monad1<URI>
function
<A>(io: IO<A>): Task<A>
Lifts an IO action into a Task
function
<A>(M: Monoid<A>): Monoid<Task<A>>
function
<A = never>(): Monoid<Task<A>>
function
<A>(S: Semigroup<A>): Semigroup<Task<A>>
function
<L, A>(f: Lazy<Promise<A>>, onrejected: (reason: {}) => L): Task<Either<L, A>>