mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 17:52:14 +01:00
17 lines
387 B
PHP
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;
|
|
} |