mirror of
https://github.com/danog/parallel.git
synced 2024-12-03 10:07:49 +01:00
16 lines
279 B
PHP
16 lines
279 B
PHP
|
<?php
|
||
|
namespace Icicle\Concurrent\Worker;
|
||
|
|
||
|
/**
|
||
|
* A runnable unit of execution.
|
||
|
*/
|
||
|
interface TaskInterface
|
||
|
{
|
||
|
/**
|
||
|
* Runs the task inside the caller's context.
|
||
|
*
|
||
|
* Can accept a varied number of arguments sent by the worker.
|
||
|
*/
|
||
|
public function run();
|
||
|
}
|