Skip to content

Commit 1f553ce

Browse files
committed
chore(Readme): fix npm references in README.md
1 parent d018245 commit 1f553ce

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

README.md

+8-12
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[![Build Status](https://img.shields.io/circleci/build/github/hellivan/node-task-scheduling-utilities/master?logo=circleci&style=flat-square)](https://circleci.com/gh/hellivan/node-task-scheduling-utilities)
44
[![Code Coverage](https://img.shields.io/codecov/c/github/hellivan/node-task-scheduling-utilities/master?logo=codecov&style=flat-square)](https://codecov.io/gh/hellivan/node-task-scheduling-utilities)
5-
[![MIT License](https://img.shields.io/npm/l/node-task-scheduling-utilities?style=flat-square)](LICENSE)
5+
[![MIT License](https://img.shields.io/npm/l/ntsu?style=flat-square)](LICENSE)
66
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)
77
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square)](https://renovatebot.com/)
8-
[![NPM Package](https://img.shields.io/npm/v/node-task-scheduling-utilities?logo=npm&style=flat-square)](https://www.npmjs.com/package/node-task-scheduling-utilities)
9-
[![NPM Package Downloads](https://img.shields.io/npm/dm/node-task-scheduling-utilities?logo=npm&style=flat-square)](https://www.npmjs.com/package/node-task-scheduling-utilities)
8+
[![NPM Package](https://img.shields.io/npm/v/ntsu?logo=npm&style=flat-square)](https://www.npmjs.com/package/ntsu)
9+
[![NPM Package Downloads](https://img.shields.io/npm/dm/ntsu?logo=npm&style=flat-square)](https://www.npmjs.com/package/ntsu)
1010

1111
Utility library that provides some basic mechanisms for task scheduling/execution in Node.js
1212

@@ -82,16 +82,12 @@ termination or failure between task-execution will also be catched by this imple
8282
errors or terminates a new `worker_thread` will be instantiated upon next task execution.
8383

8484
```typescript
85-
import { DynamicWorkerPool, WorkerThreadWorker } from 'ntsu';
85+
import { WorkerThreadWorker } from 'ntsu';
8686

87-
// create new dynamic worker pool that uses workerFactory to instantiate new workers
88-
// and has a max size of 10. The pool will keep at least 3 idle workers if
89-
const pool = new DynamicWorkerPool(
90-
{
91-
createWorker: () => new WorkerThreadWorker('workerThreadScript.js')
92-
},
93-
3,
94-
10
87+
// create a workerfactory that instantiates new WorkerThreadWorker workers, that
88+
// use workerThreadScript.js as worker_threads script
89+
const workerFactory = {
90+
createWorker: () => new WorkerThreadWorker('workerThreadScript.js')
9591
);
9692
```
9793

0 commit comments

Comments
 (0)