Kraken\Event\EventEmitterTrait::__construct PHP Method

__construct() public method

public __construct ( Kraken\Loop\LoopInterface $loop = null )
$loop Kraken\Loop\LoopInterface
    public function __construct(LoopInterface $loop = null)
    {
        if ($loop !== null) {
            $this->emitter = new AsyncEventEmitter($loop);
        } else {
            $this->emitter = new BaseEventEmitter();
        }
    }