.">
Skip to content

futureSuccess ​

Creates a Future resolved with an Right<"future">.

Interactive example ​

Syntax ​

typescript
function futureSuccess<
	const GenericInput extends unknown
>(
  input: GenericInput
): Future<FutureSuccess<GenericInput>>;

Parameters ​

  • input: Value to expose in the future.

Return value ​

A Future that resolves immediately with Right<"future"> containing the value.

See also ​

Released under the MIT license.