Skip to content

futureError

Creates a Future resolved with an EitherLeft<"future">, ideal for propagating a standardized rejection.

Interactive example

Syntax

typescript
function futureError(value: unknown): Future<EitherFutureError>;

Parameters

  • input: Error information to expose.

Return value

A Future that resolves immediately with an EitherLeft<"future">.

See also

Released under the MIT license.