resetOnUnexpectedShutdown () {
    if (this.onUnexpectedShutdown && !this.onUnexpectedShutdown.isFulfilled()) {
      this.onUnexpectedShutdown.cancel();
    }
    this.onUnexpectedShutdown = new B((resolve, reject) => {
      this.unexpectedShutdownDeferred  = {resolve, reject};
    }).cancellable();
    // noop handler to avoid warning.
    this.onUnexpectedShutdown.catch(() => {});
  }
/*
   * Initialize a new onUnexpectedShutdown promise, cancelling existing one.
   */
Initialize a new onUnexpectedShutdown promise, cancelling existing one.
Initialize a new onUnexpectedShutdown promise cancelling existing one .
resetOnUnexpectedShutdown () {
    if (this.onUnexpectedShutdown && !this.onUnexpectedShutdown.isFulfilled()) {
      this.onUnexpectedShutdown.cancel();
    }
    this.onUnexpectedShutdown = new B((resolve, reject) => {
      this.unexpectedShutdownDeferred  = {resolve, reject};
    }).cancellable();
    this.onUnexpectedShutdown.catch(() => {});
  }
resetOnUnexpectedShutdown ( ) { if ( this . onUnexpectedShutdown && ! this . onUnexpectedShutdown . isFulfilled ( ) ) { this . onUnexpectedShutdown . cancel ( ) ; } this . onUnexpectedShutdown = new B ( ( resolve , reject ) => { this . unexpectedShutdownDeferred = { resolve , reject } ; } ) . cancellable ( ) ; this . onUnexpectedShutdown . catch ( ( ) => { } ) ; }
Initialize a new onUnexpectedShutdown promise, cancelling existing one.
Initialize a new onUnexpectedShutdown promise cancelling existing one .
// noop handler to avoid warning.