Skip to main content

of()

of<A>(a): Task<A>

Creates a Task that resolves to the given value.


Type Parameters​

A: A​

The value type.


Parameters​

a: A​

The value to wrap.


Returns: Task<A>​

A Task that resolves to the value.


Since​

2.0.0