src/Utility/Discord/Collectors/Collector.js
/**
     * Handles checking for timeout via setInterval
     *
     * @memberof Collector
     */
Handles checking for timeout via setInterval
@memberof Collector
Handles checking for timeout via setInterval @memberof Collector
timeout() {
        if (this.timeoutQueue.isEmpty() ) {
            return;
        }
        this._intervalID = setInterval( () => {
            while (this.timeoutQueue.first() && Date.now() > this.timeoutQueue.first().timeout) {
                const { id }  = this.timeoutQueue.shift();
                this.emit('timeout', id);
            }
        }, 100);
    }
timeout ( ) { if ( this . timeoutQueue . isEmpty ( ) ) { return ; } this . _intervalID = setInterval ( ( ) => { while ( this . timeoutQueue . first ( ) && Date . now ( ) > this . timeoutQueue . first ( ) . timeout ) { const { id } = this . timeoutQueue . shift ( ) ; this . emit ( 'timeout' , id ) ; } } , 100 ) ; }
Handles checking for timeout via setInterval
 @memberof Collector
Handles checking for timeout via setInterval @memberof Collector