futureSuccess
Creates a Future resolved with an EitherRight<"future">.
Interactive example
Syntax
typescript
function futureSuccess<
const GenericInput extends unknown
>(
input: GenericInput
): Future<EitherFutureSuccess<GenericInput>>;Parameters
input: Value to expose in the future.
Return value
A Future that resolves immediately with EitherRight<"future"> containing the value.
