import PipeLine from './PipeLine' ; import MiddlewareInterface from '../interface/MiddlewareInterface' ; export default class Queue extends PipeLine { protected running : boolean = false ; return public isRunning ( ) { return this . running ; } /**
     * won't be break
     */ public whenBreak ( ) { return false ; } param args public addCommand ( ... args ) { if ( this . isRunning ( ) ) { this . command . push ( ... args ) ; } else { this . running = true ; this . through ( args ) . run ( ( ) => { this . running = false ; } ) ; } } }