Aborts the pending task and rejects the executor with TimeoutError if the task execution took longer then the delay.
The delay in milliseconds after which the executor is rejected.
Aborts the pending task and rejects the executor with TimeoutError if the task execution took longer then the delay.