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