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