864
}
865
}
867
>
startupKind!: StartupKind;
868
>
willShutdown = false;
869
>
870
>
private readonly _onBeforeShutdown = this._register(new Emitter<InternalBeforeShutdownEvent>());
871
>
get onBeforeShutdown(): Event<InternalBeforeShutdownEvent> { return this._onBeforeShutdown.event; }
872
>
873
>
private readonly _onBeforeShutdownError = this._register(new Emitter<BeforeShutdownErrorEvent>());
874
>
get onBeforeShutdownError(): Event<BeforeShutdownErrorEvent> { return this._onBeforeShutdownError.event; }
875
>
876
>
private readonly _onShutdownVeto = this._register(new Emitter<void>());
877
>
get onShutdownVeto(): Event<void> { return this._onShutdownVeto.event; }
878
>
879
>
private readonly _onWillShutdown = this._register(new Emitter<WillShutdownEvent>());
880
>
get onWillShutdown(): Event<WillShutdownEvent> { return this._onWillShutdown.event; }
881
>
882
>
private readonly _onDidShutdown = this._register(new Emitter<void>());
883
>
get onDidShutdown(): Event<void> { return this._onDidShutdown.event; }
884
>
885
>
shutdownJoiners: Promise<void>[] = [];
886
887
fireShutdown(reason = ShutdownReason.QUIT): void {