MCPcopy
hub / github.com/uber-go/fx / LifecycleOption

Interface LifecycleOption

fxtest/lifecycle.go:71–73  ·  view source on GitHub ↗

LifecycleOption modifies the behavior of the [Lifecycle] when passed to [NewLifecycle].

Source from the content-addressed store, hash-verified

69// LifecycleOption modifies the behavior of the [Lifecycle]
70// when passed to [NewLifecycle].
71type LifecycleOption interface {
72 apply(*Lifecycle)
73}
74
75// EnforceTimeout will cause the [Lifecycle]'s Start and Stop methods
76// to return an error as soon as context expires,

Callers 1

NewLifecycleFunction · 0.65

Implementers 15

replaceOptionreplace.go
asAnnotationannotated.go
fromAnnotationannotated.go
invokeOptioninvoke.go
moduleOptionmodule.go

Calls

no outgoing calls

Tested by

no test coverage detected