method Task.prototype.flatMap
Task.prototype.flatMap<U>(fn: (value: T) => Task<U, E>): Task<U, E>

Chains another task based on the successful value.

Type Parameters

Parameters

fn: (value: T) => Task<U, E>

Return Type

Task<U, E>

Usage

import { Task } from ".";