Converts a callback-based function to a Promise-based function.
The callback-based function to convert.
A Promise-based version of the function.
Converts a callback-based function to a Promise-based function.