OptionallifecycleLifecycle registrar provided by the boot planner. Builders that produce a resource requiring cleanup (database client, interval timer, etc.) SHOULD call:
ctx.lifecycle?.register(async () => { await resource.close(); })
Optional: factories constructed outside the boot planner (e.g. unit
tests) receive {} as ctx, so ctx.lifecycle is undefined. Always
use optional chaining.
Builder context passed to every adapter builder. All fields are optional and additions remain additive-only (non-breaking). Builders may ignore fields they do not need.
Planned future fields: