The plugin that aborts the pending task with TimeoutError if the task execution took longer then the given delay.
import abortPendingAfter from 'react-executor/plugin/abortPendingAfter';const executor = useExecutor('test', heavyTask, [ abortPendingAfter(10_000)]); Copy
import abortPendingAfter from 'react-executor/plugin/abortPendingAfter';const executor = useExecutor('test', heavyTask, [ abortPendingAfter(10_000)]);
The plugin that aborts the pending task with TimeoutError if the task execution took longer then the given delay.