, ideal for propagating a standardized rejection.">
Skip to content

futureError ​

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

Interactive example ​

Syntax ​

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

Parameters ​

  • input: Error information to expose.

Return value ​

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

See also ​

Released under the MIT license.