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

17 lines
387 B
PHP
Raw Normal View History

2016-08-22 06:40:48 +02:00
<?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;
}