Aborts the pending task with TimeoutError if the task execution took longer then the given delay.
The delay in milliseconds after which the task is aborted.
Aborts the pending task with TimeoutError if the task execution took longer then the given delay.