procedural-to-declarative
    Preparing search index...

    Function any

    • /**

      • Run multiple tasks in parallel and return a task that is finished when any of the tasks is finished.

      Type Parameters

      • TNumber extends number

      Parameters

      • tasks: Task<TNumber>[]

        The tasks to run in parallel. The returned task will be finished when any of the tasks is finished. *

      Returns TaskAny<TNumber>

      A Task object that can be suspended and resumed. wait() returns a Wait object that is finished when all of the tasks are finished. When the task is suspended, all of the tasks will not be suspended. When the task is resumed, all of the tasks will not be resumed.