Amp\Internal\WhenQueue::__construct PHP Method

__construct() public method

public __construct ( callable $callback = null )
$callback callable Initial callback to add to queue.
    public function __construct(callable $callback = null)
    {
        if (null !== $callback) {
            $this->push($callback);
        }
    }