mirror of
https://github.com/danog/parallel.git
synced 2024-12-14 10:08:24 +01:00
18 lines
301 B
PHP
18 lines
301 B
PHP
|
<?php
|
||
|
namespace Icicle\Concurrent;
|
||
|
|
||
|
/**
|
||
|
* Interface for all types of execution contexts.
|
||
|
*/
|
||
|
interface Context
|
||
|
{
|
||
|
/**
|
||
|
* Executes a task inside the context.
|
||
|
*
|
||
|
* @param Task $task [description]
|
||
|
*
|
||
|
* @return [type] [description]
|
||
|
*/
|
||
|
public function run(Task $task);
|
||
|
}
|