To do so, we can use the fromCallback() method. It has the following signature:
The first argument is mandatory and the next two are optional. They are as follows:
- func: This is the function that usually receives a callback when it finishes
- context: This is the context to be used in the callback
- selector: This is a function that takes the ...