Function rejected

  • Invariant task constructor creating rejected task from error value

    Type Parameters

    • R

      returned task's resolve type

    Parameters

    • error: any

      error to be returned upon awaiting

    Returns Task<R>

    task resolving to specified value

Generated using TypeDoc