value<A> function

Task<A> value<A>(
  1. A value
)

Create a Task that wraps the given value.

Implementation

Task<A> value<A>(A value) => Task(() => value);