fold
fold<
A,B>(onNone,onSome): (data) =>Task<B>
Defined in: Core/TaskOption.ts:93
Extracts a value from a TaskOption by providing handlers for both cases.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”onNone
Section titled “onNone”() => B
onSome
Section titled “onSome”(a) => B
Returns
Section titled “Returns”(
data):Task<B>
Parameters
Section titled “Parameters”TaskOption<A>
Returns
Section titled “Returns”Task<B>