1.0.5 • Published 3 years ago

ex-worker v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago
  import ExWorker from 'ex-worker';

  const core = new ExWorker({ mode: 'auto' });

  core.push(() => {
    console.debug('It works!');
  })

  core.push({
    fn: () => {
      console.debug('It works!');
    },
    before: () => {},
    after: () => {},
    priority: 10
  })
  • ExWorker execute tasks by priority (tasks with bigger priority are executed first)
  • ExWorker set default priority 0 if you don't set it
  • ExWorker has possibilities for callback functions
  • ExWorker has auto|manual modes. If mode is manual you must call core.start() to process tasks
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago