1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-12 00:59:46 +01:00
parallel/lib/Worker/Internal/TaskResult.php
2016-08-23 16:47:40 -05:00

17 lines
385 B
PHP

<?php declare(strict_types = 1);
namespace Amp\Parallel\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;
}