Skip to content

DI Bag API / index / CloseOptions

Interface: CloseOptions ​

Defined in: startup.ts:10

Bounds the wait of Container.close; disposal itself keeps running after either fires.

See ​

https://dany-fedorov.github.io/di-bag/agent/errors.html#di-bag-close-timeout

Properties ​

abortSignal? ​

ts
readonly abortSignal?: AbortSignal;

Defined in: startup.ts:12

Aborting it stops the wait promptly. Disposal keeps running.


waitTimeoutMs? ​

ts
readonly waitTimeoutMs?: number;

Defined in: startup.ts:14

A finite positive deadline in milliseconds for the wait, not for the disposal.

Ordinary services. Checked composition. Explicit ownership.