Function timeout

  • Timeout for a task, in milliseconds. Will error on timeout unless an alternate task is provided.

    Parameters

    • ms: number
    • task: Task
    • Optionalalternate: null | Task

    Returns Async

    Task