Methods
(inner) promisify(method) → {Promise.<function()>}
- Description:
Converts a standard callback method into Promise
- Source:
Parameters:
Name | Type | Description |
---|---|---|
method |
function | Function to convert into a promise |
Returns:
- Passed in method converted into a promise
- Type
- Promise.<function()>
(inner) promisifyAll(object) → {Object}
- Description:
Converts Objects method properties into promiseAsync. allow using promisifyAll
- Source:
Parameters:
Name | Type | Description |
---|---|---|
object |
Object |
Returns:
- promisified object
- Type
- Object
(inner) wait(time) → {void}
- Description:
Stops execution for a given amount of time
- Source:
Parameters:
Name | Type | Description |
---|---|---|
time |
Number | Amount of time to wait |
Returns:
- Type
- void