Function all

  • Waits for all generators/signals to complete and returns an array of their values. Results are returned in the order they complete, not the order they were passed.

    Parameters

    • Rest ...generators: (Generator<any, any, any> | GeneratorFunction | Signal<any>)[]

      Generators or signals to wait for

    Returns Generator<any, any, any>

    Generator that yields an array of all completed values