Function resolve

Standalone function version of Task.resolve

  • Construct a Task which is already resolved. Useful when you have a value already, but need it to be available in an API which expects a Task.

    Type Parameters

    • T extends Unit
    • E = never

    Returns Task<Unit, E>

  • Construct a Task which is already resolved. Useful when you have a value already, but need it to be available in an API which expects a Task.

    Type Parameters

    • T
    • E = never

    Parameters

    • value: T

    Returns Task<T, E>