ok

Mini Shell

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

<?php

namespace Amp\Parallel\Context;

use Amp\Promise;

interface ContextFactory
{
    /**
     * Creates a new execution context.
     *
     * @param string|string[] $script Path to PHP script or array with first element as path and following elements options
     *     to the PHP script (e.g.: ['bin/worker', 'Option1Value', 'Option2Value'].
     *
     * @return Context
     */
    public function create($script): Context;

    /**
     * Creates and starts a new execution context.
     *
     * @param string|string[] $script Path to PHP script or array with first element as path and following elements options
     *     to the PHP script (e.g.: ['bin/worker', 'Option1Value', 'Option2Value'].
     *
     * @return Promise<Context>
     */
    public function run($script): Promise;
}

Zerion Mini Shell 1.0