asyncjs-util
v1.2.12
Published
Asyncjs Utilities
Downloads
12,279
Readme
Asyncjs Utilities
Utility methods for working with asyncjs
getMaximum
Get maximum value through binary search
{
[accuracy]: <Close Enough Delta Number>
from: <Minimum Number>
to: <Maximum Number>
}
<Async Test Function> ({cursor}, (err, isLow) => {}) => {}
@returns via cbk or Promise
{
maximum: <Maximum Number>
}
returnResult
Return a specific result of an async/auto process
Omit a cbk and specify reject/resolve if using a Promise
{
[of]: <Property String>
[reject]: <Promise Reject Function>
[resolve]: <Promise Resolve Function>
}
[cbk]: <Callback Function>
@returns
<Function> (err, res) => {}