Skip to content

Commit

Permalink
Fixed jsdoc docs;
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Nov 22, 2020
1 parent 25e2b0a commit b49520a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,9 @@ emits the event
<a name="module_CPromise..CPromise+emitHook"></a>

#### cPromise.emitHook(type, ...args) ⇒ <code>Boolean</code>
emits the hook event
emits event as a hook. If some listener return true, this method will immediately return true as the result.Else if some listener returns false the method will return false after invoking all the listeners

**Kind**: instance method of [<code>CPromise</code>](#module_CPromise..CPromise)
**Returns**: <code>Boolean</code> - - false if some listener returned false

| Param | Type |
| --- | --- |
Expand Down
5 changes: 3 additions & 2 deletions lib/c-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -1368,10 +1368,11 @@ class CPromise extends Promise {
}

/**
* emits the hook event
* emits event as a hook. If some listener return true, this method will immediately return true as the result.
* Else if some listener returns false the method will return false after invoking all the listeners
* @param {EventType} type
* @param args
* @returns {Boolean} - false if some listener returned false
* @returns {Boolean}
*/

emitHook(type, ...args) {
Expand Down

0 comments on commit b49520a

Please sign in to comment.