Function create

  • Custom task monad constructor

    Type Parameters

    • R

      returned task's resolve type

    Parameters

    • invoke: TaskInvoke<R>

      promise defining task execution

    • cancel: TaskCancel

      cancelation function

    Returns Task<R>

    task resolving to resolve value of invoke

    Note

    low-level primitive for creating custom tasks, not intended for general use

Generated using TypeDoc