Function promiseGenerator

  • Convinience shortcut for yielding async functions as tasks

    Type Parameters

    • R

      returned generator resolve type

    Parameters

    • promise: PromiseLike<R>

      promise to be resolved

    Returns TaskGenerator<unknown, Task<R>, R>

    generator to be be used with yield*

Generated using TypeDoc