Swoole\Coroutine::call_user_func

Call a callback given by the first parameter

説明

public static mixed Swoole\Coroutine::call_user_func(callable $callback, mixed ...$args)

Calls the callback given by the first parameter and passes the remaining parameters as arguments.

パラメータ

callback

The callable to be called.

args

Zero or more parameters to be passed to the callback.

戻り値