method Task.prototype.result
Task.prototype.result(): Promise<Result<T, E>>

Executes the task and returns a tagged result instead of throwing.

Return Type

Promise<Result<T, E>>

Usage

import { Task } from ".";