Skip to content

Repository files navigation

Nodejs Workers Pool / Noroutine

Workers

  const modules = { api, crypto };
  const CONCURRENCY = 2;
  const pool = await new WorkersPool({
    modules,
    concurrency: CONCURRENCY,
  });
  // ... work
  await pool.close();

Noroutine

  const modules = { api, crypto };
  const CONCURRENCY = 2;
  const noroutine = await register({ 
    modules, 
    concurrency: CONCURRENCY,
  });
  // ... work
  await finalize(noroutine);

About

Nodejs workers pool

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages