1 | import resolveAfterBy from './resolveAfterBy.js';
|
2 |
|
3 | /**
|
4 | * Returns a function that returns a Promise that resolves with the results of a callback.
|
5 | *
|
6 | * @function resolveBy
|
7 | * @category Higher-order
|
8 | *
|
9 | * @arg {function} [callback] - Context and args are set to the same as those passed to the initially returned function.
|
10 | *
|
11 | * @returns {function(): Promise}
|
12 | */
|
13 | export default (callback) => resolveAfterBy(0, callback);
|