v1.22.0
Added
- Add
fx.Self
which can be passed to thefx.As
annotation to signify
that a type should be provided as itself. - Add
fxtest.EnforceTimeout
that can be passed tofxtest.NewLifecycle
to forceStart
andStop
to return context errors when hook context expires.
Changed
fx.Private
can now be used withfx.Supply
.
Fixed
- Fx apps will no longer listen to OS signals when they are stopped,
solving blocking issues in programs that depended on OS signals
after an Fx app stops.
Thank you @MarcoPolo for your contribution to the release.