void Swoole\Server->taskwait ( string $data [, float $timeout [, int $worker_id ]] )
Alias: Swoole\Server->taskwait( string $data [, float $timeout [, int $worker_id ]] )
Swoole\Server->taskwait is similar to
Swoole\Server->task. The two methods both send task data to the task worker pool to execute, but the former is blocking.
$task_datathe data which is to send to the task worker, its type could any type except fot resource
$timeoutthe time of timeout
$dst_worker_idthe id number of task worker. If this parameter hasn't been passed, the swoole server would select a random and unoccupied task worker process.
If the call of this method succeeds, the return is the result of task If the execution of this method exceeds the time of timeout, the return is false