Ejemplo n.º 1
0
 public function task($coroutine)
 {
     $this->_callList[] = $coroutine;
     $taskId = \Coroutine::newTaskId();
     $coroutine = $this->multiCoroutine($taskId, $coroutine);
     \Coroutine::register($taskId, $coroutine);
     return \Coroutine::wrap($coroutine);
 }