Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Mar 3, 2020
1 parent e8f7f2e commit 245898d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"devDependencies": {
"@types/chai": "4.2.10",
"@types/chai-spies": "1.0.1",
"@types/mocha": "7.0.1",
"@types/mocha": "7.0.2",
"@types/node": "13.7.7",
"browserify": "16.5.0",
"chai": "4.2.0",
Expand Down
6 changes: 3 additions & 3 deletions src/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export enum EmitSchedule {
* Data broadcast is fully asynchronous: each subscriber will be receiving the event
* within its own processor tick (under Node.js), or timer tick (in browsers).
*/
async = 'async',
async = 'async',

/**
* Wait for the next processor tick (under Node.js), or timer tick (in browsers),
Expand Down Expand Up @@ -396,8 +396,8 @@ export class SubEvent<T = unknown> {
* Creates a new subscription as a promise, to resolve with the next received value,
* and cancel the subscription. It can only reject when option `timeout` is specified.
*
* Note that if you use this method in a loop, it can miss events, as the subscription
* is cancelled after receiving the first event.
* Note that if you use this method consecutively, you can miss events in between,
* because the subscription is auto-cancelled after receiving the first event.
*
* @param options
* Subscription options:
Expand Down

0 comments on commit 245898d

Please sign in to comment.