ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/vendor/amphp/parallel/lib/Context/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/vendor/amphp/parallel/lib/Context/Context.php

<?php

namespace Amp\Parallel\Context;

use Amp\Parallel\Sync\Channel;
use Amp\Promise;

interface Context extends Channel
{
    /**
     * @return bool
     */
    public function isRunning(): bool;

    /**
     * Starts the execution context.
     *
     * @return Promise<null> Resolved once the context has started.
     */
    public function start(): Promise;

    /**
     * Immediately kills the context.
     */
    public function kill();

    /**
     * @return \Amp\Promise<mixed> Resolves with the returned from the context.
     *
     * @throws \Amp\Parallel\Context\ContextException If the context dies unexpectedly.
     * @throws \Amp\Parallel\Sync\PanicError If the context throws an uncaught exception.
     */
    public function join(): Promise;
}

Zerion Mini Shell 1.0