Module plugin/rejectPending

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)
]);

Index

Functions