Rx\Scheduler\ImmediateScheduler::schedule PHP Method

schedule() public method

public schedule ( callable $action, $delay )
$action callable
    public function schedule(callable $action, $delay = 0)
    {
        if ($delay !== 0) {
            throw new InvalidArgumentException("ImmediateScheduler does not support a non-zero delay.");
        }
        $action();
        return new EmptyDisposable();
    }