call_user_func

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Call the callback given by the first parameter
<?php call_user_func(callable $callback, mixed ...$args): mixed
<?php             }

        };



        $promise = call_user_func($task);

        assert($promise instanceof PromiseInterface);

        $pending[$i] = $promise;
<?php         }



        $task = array_shift($tasks);

        $promise = call_user_func($task);

        assert($promise instanceof PromiseInterface);

        $pending = $promise;