public function wait(): void
    {
        while (!$this->stream->eof()) {
            $frame = $this->readFrame();

            if (null !== $frame) {
                if (!\is_array($frame)) {
                    $frame = [$frame];
                }

                foreach ($this->onNewFrameCallables as $newFrameCallable) {
                    \call_user_func_array($newFrameCallable, $frame);
                }
            }
        }
    }
public function wait(): void
    {
        while (!$this->stream->eof()) {
            $frame = $this->readFrame();

            if (null !== $frame) {
                if (!\is_array($frame)) {
                    $frame = [$frame];
                }

                foreach ($this->onNewFrameCallables as $newFrameCallable) {
                    \call_user_func_array($newFrameCallable, $frame);
                }
            }
        }
    }
public function wait ( ) : void { while ( ! $ this -> stream -> eof ( ) ) { $ frame = $ this -> readFrame ( ) ; if ( null !== $ frame ) { if ( ! \ is_array ( $ frame ) ) { $ frame = [ $ frame ] ; } foreach ( $ this -> onNewFrameCallables as $ newFrameCallable ) { \ call_user_func_array ( $ newFrameCallable , $ frame ) ; } } } }
Wait for stream to finish and call callables if defined.
Wait for stream to finish and call callables if defined .