Skip to content

fold

fold<E, A, B>(onErr, onOk): (data) => Task<B>

Defined in: Core/TaskResult.ts:100

Extracts the value from a TaskResult by providing handlers for both cases.

E

A

B

(e) => B

(a) => B

(data) => Task<B>