qqq
This commit is contained in:
+20
-6
@@ -6,12 +6,26 @@ interface TaskInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param array $handler
|
||||
* @param int|null $workerId
|
||||
* @return void
|
||||
*/
|
||||
public function dispatch(array $handler, ?int $workerId = null): void;
|
||||
/**
|
||||
* @param array $tasks
|
||||
* @param float $timeout
|
||||
* @return false|array
|
||||
*/
|
||||
public function taskWaitMulti(array $tasks, float $timeout = 0.5): false|array;
|
||||
|
||||
/**
|
||||
* @param array $tasks
|
||||
* @param float $timeout
|
||||
* @return false|array
|
||||
*/
|
||||
public function taskCo(array $tasks, float $timeout = 0.5): false|array;
|
||||
|
||||
/**
|
||||
* @param mixed $data
|
||||
* @param float $timeout
|
||||
* @param int $dstWorkerId
|
||||
* @return mixed
|
||||
*/
|
||||
public function taskWait(mixed $data, float $timeout = 0.5, int $dstWorkerId = -1): mixed;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user