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