1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 09:09:35 +01:00
parallel/lib/Context.php
Aaron Piotrowski da84a772cf Port to Amp
2016-08-18 11:04:48 -05:00

28 lines
475 B
PHP

<?php
namespace Amp\Concurrent;
use Interop\Async\Awaitable;
interface Context {
/**
* @return bool
*/
public function isRunning(): bool;
/**
* Starts the execution context.
*/
public function start();
/**
* Immediately kills the context.
*/
public function kill();
/**
* @return \Interop\Async\Awaitable<mixed> Resolves with the returned from the context.
*/
public function join(): Awaitable;
}