Function _await

  • Makes a promise a flow, so it can be awaited with yield*.

    Type Parameters

    • T

    Parameters

    • promise: Promise<T>

      Promise.

    Returns Generator<Promise<T>, T, unknown>

    T Promise return type.