Skip to content

Commit fd29c3c

Browse files
committed
修改reademe
1 parent 7a7cc49 commit fd29c3c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# event-queue
22

3-
Used to control events(async or sync) list
3+
events(async or sync) list management
44

55
## Use
66

7-
- maxEventNumber:{number} can run max event,default 5
8-
- async:{boolean} event list run with async or sync,default false, it means sync
9-
- breakRun:{function} break the add event to event list,while false(default return false),can continue to add
7+
- maxEventNumber:{number} can run max event,default `5`
8+
- async:{boolean} event list run with async or sync,default `false`, it means sync
9+
- breakRun:{function} break the add event to event list,while `false`(default return `false`),can continue to add
1010

1111
```bash
12-
npm install -S event-queue.js
12+
npm install -S event-queuejs
1313
// or
14-
yarn add event-queue.js
14+
yarn add event-queuejs
1515
```
1616

1717
```javascript
18-
import EventQueue from 'event-queue.js';
18+
import EventQueue from 'event-queuejs';
1919
const eventQueue = new EventQueue();
2020
const eventList = [];
2121
const eventArr = new Array(46).join(',').split(',');
@@ -32,5 +32,5 @@ eventArr.map(() => {
3232
});
3333
});
3434
// add event list to instance and run it!
35-
eventQueue.add(taskList).run();
35+
eventQueue.add(eventList).run();
3636
```

0 commit comments

Comments
 (0)