Skip to content

Commit

Permalink
Updated readme;
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Dec 1, 2020
1 parent 4f28354 commit 5eb8611
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function MyComponent(props) {
````

## Signals handling
Every CPromise instance could handle "signals", emitted using `emitSignal` method.
Every CPromise instance can handle "signals", emitted using `emitSignal` method.
The method emits a `signal` event on each pending promise in the chain until some handler returns `true` as the result.
This method is used internally for predefined system signals for cancellation and suspending actions.

Expand Down Expand Up @@ -451,7 +451,7 @@ const promise= CPromise.from(function*(){
yield CPromise.delay(1000);
yield [CPromise.delay(1000), CPromise.delay(1500)] // resolve chains using CPromise.all([...chains]);
yield [[CPromise.delay(1000), CPromise.delay(1500)]] // resolve chains using CPromise.race([...chains]);
yield new CPromise(resolve=> resolve(true)); // any thenable object will be resolved
yield new Promise.resolve(); // any thenable object will be resolved
return "It works!";
})
.progress(value=> console.log(`Progress: ${value}`))
Expand Down
4 changes: 2 additions & 2 deletions jsdoc2md/README.hbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ function MyComponent(props) {
````

## Signals handling
Every CPromise instance could handle "signals", emitted using `emitSignal` method.
Every CPromise instance can handle "signals", emitted using `emitSignal` method.
The method emits a `signal` event on each pending promise in the chain until some handler returns `true` as the result.
This method is used internally for predefined system signals for cancellation and suspending actions.

Expand Down Expand Up @@ -451,7 +451,7 @@ const promise= CPromise.from(function*(){
yield CPromise.delay(1000);
yield [CPromise.delay(1000), CPromise.delay(1500)] // resolve chains using CPromise.all([...chains]);
yield [[CPromise.delay(1000), CPromise.delay(1500)]] // resolve chains using CPromise.race([...chains]);
yield new CPromise(resolve=> resolve(true)); // any thenable object will be resolved
yield new Promise.resolve(); // any thenable object will be resolved
return "It works!";
})
.progress(value=> console.log(`Progress: ${value}`))
Expand Down

0 comments on commit 5eb8611

Please sign in to comment.