function resume() {
        if(!$this->sockets) {
            if(!$this->timer) {
                $this->timer = $this->loop->addPeriodicTimer($this->timerInterval, array($this->pool, 'timerTick'));
            }
            
            return;
        }
        
        if($this->streams->count() > 0) {
            foreach($this->streams as $stream) {
                $stream->resume();
            }
        }
    }
function resume() {
        if(!$this->sockets) {
            if(!$this->timer) {
                $this->timer = $this->loop->addPeriodicTimer($this->timerInterval, array($this->pool, 'timerTick'));
            }
            
            return;
        }
        
        if($this->streams->count() > 0) {
            foreach($this->streams as $stream) {
                $stream->resume();
            }
        }
    }
function resume ( ) { if ( ! $ this -> sockets ) { if ( ! $ this -> timer ) { $ this -> timer = $ this -> loop -> addPeriodicTimer ( $ this -> timerInterval , array ( $ this -> pool , 'timerTick' ) ) ; } return ; } if ( $ this -> streams -> count ( ) > 0 ) { foreach ( $ this -> streams as $ stream ) { $ stream -> resume ( ) ; } } }
Resumes whatever the implementation would do. Adds the timer or resumes all streams.
@return void
Resumes whatever the implementation would do . Adds the timer or resumes all streams .