function asyncCall(callable $callback, array ...$args)

Calls the given function. If the function returns a Generator, it will be run as a coroutine. If the function throws or returns a failing promise, the failure is forwarded to the loop error handler.

Type Parameter Description Default Value
callable $callback No documentation. none
array ... $args No documentation. none