t-tasks
    Preparing search index...

    Function limit

    • Limit task execution based on another task

      If the second task resolves sooner than the first, resulting task is canceled Otherwise the resulting task resolves together with the first one

      Type Parameters

      • T

        underlying task type

      Parameters

      • task: Task<T>

        task to limit

      • limitTask: Task<void>

        limiting task

      Returns Task<T>

      task limites according to limitTask