ok

Mini Shell

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

<?php

namespace Amp\Parallel\Worker;

/**
 * A runnable unit of execution.
 */
interface Task
{
    /**
     * Runs the task inside the caller's context.
     *
     * Does not have to be a coroutine, can also be a regular function returning a value.
     *
     * @param \Amp\Parallel\Worker\Environment
     *
     * @return mixed|\Amp\Promise|\Generator
     */
    public function run(Environment $environment);
}

Zerion Mini Shell 1.0