1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/lib/Worker/Internal/TaskResult.php
2016-08-21 23:40:48 -05:00

17 lines
387 B
PHP

<?php declare(strict_types = 1);
namespace Amp\Concurrent\Worker\Internal;
use Interop\Async\Awaitable;
interface TaskResult {
/**
* @return string Task identifier.
*/
public function getId(): string;
/**
* @return \Interop\Async\Awaitable<mixed> Resolved with the task result or failure reason.
*/
public function getAwaitable(): Awaitable;
}