1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-03 10:07:49 +01:00
parallel/src/Worker/TaskInterface.php

16 lines
279 B
PHP
Raw Normal View History

<?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();
}