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