Function first

  • Waits for the first of multiple generators/signals to complete and returns its value. Cancels all other generators when one completes.

    Parameters

    Returns Generator<any, any, any>

    Generator that yields the first completed value