mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-27 05:04:26 +00:00
1 line
13 KiB
JSON
1 line
13 KiB
JSON
{"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV5labelSSvp":{"name":"label","abstract":"<p>Defines the <code>label</code> for the lifeycle and its Logger</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV6logger7Logging6LoggerVvp":{"name":"logger","abstract":"<p>Defines the <code>Logger</code> to log with.</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV13callbackQueue8Dispatch0fE0Cvp":{"name":"callbackQueue","abstract":"<p>Defines the <code>DispatchQueue</code> on which startup and shutdown callback handlers are run.</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV14shutdownSignalSayAC0E0VGSgvp":{"name":"shutdownSignal","abstract":"<p>Defines what, if any, signals to trap for invoking shutdown.</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV16installBacktraceSbvp":{"name":"installBacktrace","abstract":"<p>Defines if to install a crash signal trap that prints backtraces.</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV5label6logger13callbackQueue14shutdownSignal16installBacktraceAESS_7Logging6LoggerVSg8Dispatch0nG0CSayAC0I0VGSgSbtcfc":{"name":"init(label:logger:callbackQueue:shutdownSignal:installBacktrace:)","abstract":"<p>Undocumented</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV4TERMAEvpZ":{"name":"TERM","abstract":"<p>Undocumented</p>","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV3INTAEvpZ":{"name":"INT","abstract":"<p>Undocumented</p>","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV4USR1AEvpZ":{"name":"USR1","abstract":"<p>Undocumented</p>","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV4USR2AEvpZ":{"name":"USR2","abstract":"<p>Undocumented</p>","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV3HUPAEvpZ":{"name":"HUP","abstract":"<p>Undocumented</p>","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:s23CustomStringConvertibleP11descriptionSSvp":{"name":"description","parent_name":"Signal"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V13configurationA2C13ConfigurationV_tcfc":{"name":"init(configuration:)","abstract":"<p>Creates a <code>ServiceLifecycle</code> instance.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"<p>Starts the provided <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V12startAndWaityyKF":{"name":"startAndWait()","abstract":"<p>Starts the provided <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array and waits (blocking) until a shutdown <code><a href=\"36f8f5912051ae747ef441d6511ca4cbStructs/ServiceLifecycle/Signal.html\">Signal</a></code> is captured or <code>shutdown</code> is called on another thread.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8shutdownyyys5Error_pSgcF":{"name":"shutdown(_:)","abstract":"<p>Shuts down the <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array provided in <code>start</code> or <code>startAndWait</code>.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V4waityyF":{"name":"wait()","abstract":"<p>Waits (blocking) until shutdown <code><a href=\"36f8f5912051ae747ef441d6511ca4cbStructs/ServiceLifecycle/Signal.html\">Signal</a></code> is captured or <code>shutdown</code> is invoked on another thread.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V4trap6signal7handler2on15cancelAfterTrap8Dispatch0J12SourceSignal_pAC0L0V_yALcAI0J5QueueCSbtFZ":{"name":"trap(signal:handler:on:cancelAfterTrap:)","abstract":"<p>Setup a signal trap.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle/Signal.html":{"name":"Signal","abstract":"<p>A system signal</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle0A14TasksContainerP8registeryySayAA0A4Task_pGF":{"name":"register(_:)","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle/Configuration.html":{"name":"Configuration","abstract":"<p><code><a href=\"36f8f5912051ae747ef441d6511ca4cbStructs/ServiceLifecycle.html\">ServiceLifecycle</a></code> configuration options.</p>","parent_name":"ServiceLifecycle"},"Structs/LifecycleShutdownHandler.html#/s:9Lifecycle0A15ShutdownHandlerVyACyxGyx_ys5Error_pSgctccfc":{"name":"init(_:)","abstract":"<p>Initialize a <code>LifecycleShutdownHandler</code> based on a completion handler.</p>","parent_name":"LifecycleShutdownHandler"},"Structs/LifecycleShutdownHandler.html#/s:9Lifecycle0A15ShutdownHandlerV5asyncyACyxGyx_ys5Error_pSgctcFZ":{"name":"async(_:)","abstract":"<p>Asynchronous <code>LifecycleShutdownHandler</code> based on a completion handler.</p>","parent_name":"LifecycleShutdownHandler"},"Structs/LifecycleShutdownHandler.html#/s:9Lifecycle0A15ShutdownHandlerV4syncyACyxGyxKcFZ":{"name":"sync(_:)","abstract":"<p>Asynchronous <code>LifecycleShutdownHandler</code> based on a blocking, throwing function.</p>","parent_name":"LifecycleShutdownHandler"},"Structs/LifecycleStartHandler.html#/s:9Lifecycle0A12StartHandlerVyACyxGyys6ResultOyxs5Error_pGcccfc":{"name":"init(_:)","abstract":"<p>Initialize a <code><a href=\"36f8f5912051ae747ef441d6511ca4cbStructs/LifecycleHandler.html\">LifecycleHandler</a></code> based on a completion handler.</p>","parent_name":"LifecycleStartHandler"},"Structs/LifecycleStartHandler.html#/s:9Lifecycle0A12StartHandlerV5asyncyACyxGyys6ResultOyxs5Error_pGccFZ":{"name":"async(_:)","abstract":"<p>Asynchronous <code>LifecycleStartHandler</code> based on a completion handler.</p>","parent_name":"LifecycleStartHandler"},"Structs/LifecycleStartHandler.html#/s:9Lifecycle0A12StartHandlerV4syncyACyxGxyKcFZ":{"name":"sync(_:)","abstract":"<p>Synchronous <code>LifecycleStartHandler</code> based on a blocking, throwing function.</p>","parent_name":"LifecycleStartHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV8Callbacka":{"name":"Callback","abstract":"<p>Undocumented</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerVyACyys5Error_pSgccSgcfc":{"name":"init(_:)","abstract":"<p>Initialize a <code>LifecycleHandler</code> based on a completion handler.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV5asyncyACyys5Error_pSgccFZ":{"name":"async(_:)","abstract":"<p>Asynchronous <code>LifecycleHandler</code> based on a completion handler.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV4syncyACyyKcFZ":{"name":"sync(_:)","abstract":"<p>Asynchronous <code>LifecycleHandler</code> based on a blocking, throwing function.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV4noneACvpZ":{"name":"none","abstract":"<p>Noop <code>LifecycleHandler</code>.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html":{"name":"LifecycleHandler","abstract":"<p>Supported startup and shutdown method styles</p>"},"Structs/LifecycleStartHandler.html":{"name":"LifecycleStartHandler","abstract":"<p>LifecycleHandler for starting stateful tasks. The state can then be fed into a LifecycleShutdownHandler</p>"},"Structs/LifecycleShutdownHandler.html":{"name":"LifecycleShutdownHandler","abstract":"<p>LifecycleHandler for shutting down stateful tasks. The state comes from a LifecycleStartHandler</p>"},"Structs/ServiceLifecycle.html":{"name":"ServiceLifecycle","abstract":"<p><code>ServiceLifecycle</code> provides a basic mechanism to cleanly startup and shutdown the application, freeing resources in order before exiting."},"Protocols/LifecycleTasksContainer.html#/s:9Lifecycle0A14TasksContainerP8registeryySayAA0A4Task_pGF":{"name":"register(_:)","abstract":"<p>Adds a <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> to a <code>LifecycleTasks</code> collection.</p>","parent_name":"LifecycleTasksContainer"},"Protocols/LifecycleTasksContainer.html#/s:9Lifecycle0A14TasksContainerPAAE8register5label5start8shutdown0G12IfNotStartedySS_AA0A7HandlerVAJSbSgtF":{"name":"register(label:start:shutdown:shutdownIfNotStarted:)","abstract":"<p>Adds a <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> to a <code>LifecycleTasks</code> collection.</p>","parent_name":"LifecycleTasksContainer"},"Protocols/LifecycleTasksContainer.html#/s:9Lifecycle0A14TasksContainerPAAE16registerShutdown5label_ySS_AA0A7HandlerVtF":{"name":"registerShutdown(label:_:)","abstract":"<p>Adds a <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> to a <code>LifecycleTasks</code> collection.</p>","parent_name":"LifecycleTasksContainer"},"Protocols/LifecycleTasksContainer.html#/s:9Lifecycle0A14TasksContainerPAAE16registerStateful5label5start8shutdownySS_AA0A12StartHandlerVyqd__GAA0a8ShutdownJ0Vyqd__GtlF":{"name":"registerStateful(label:start:shutdown:)","abstract":"<p>Add a stateful <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> to a <code>LifecycleTasks</code> collection.</p>","parent_name":"LifecycleTasksContainer"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP5labelSSvp":{"name":"label","abstract":"<p>Undocumented</p>","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP20shutdownIfNotStartedSbvp":{"name":"shutdownIfNotStarted","abstract":"<p>Undocumented</p>","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"<p>Undocumented</p>","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP8shutdownyyys5Error_pSgcF":{"name":"shutdown(_:)","abstract":"<p>Undocumented</p>","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html":{"name":"LifecycleTask","abstract":"<p>Represents an item that can be started and shut down</p>"},"Protocols/LifecycleTasksContainer.html":{"name":"LifecycleTasksContainer","abstract":"<p>A container of <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code>, used to register additional <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code></p>"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5labelSSvp":{"name":"label","abstract":"<p>Undocumented</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5label6loggerACSS_7Logging6LoggerVSgtcfc":{"name":"init(label:logger:)","abstract":"<p>Creates a <code>ComponentLifecycle</code> instance.</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"<p>Starts the provided <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5start2on_y8Dispatch0E5QueueC_ys5Error_pSgctF":{"name":"start(on:_:)","abstract":"<p>Starts the provided <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C12startAndWait2ony8Dispatch0G5QueueC_tKF":{"name":"startAndWait(on:)","abstract":"<p>Starts the provided <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array and waits (blocking) until <code>shutdown</code> is called on another thread.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8shutdownyyys5Error_pSgcF":{"name":"shutdown(_:)","abstract":"<p>Shuts down the <code><a href=\"36f8f5912051ae747ef441d6511ca4cbProtocols/LifecycleTask.html\">LifecycleTask</a></code> array provided in <code>start</code> or <code>startAndWait</code>.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C4waityyF":{"name":"wait()","abstract":"<p>Waits (blocking) until <code>shutdown</code> is invoked on another thread.</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle0A14TasksContainerP8registeryySayAA0A4Task_pGF":{"name":"register(_:)","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html":{"name":"ComponentLifecycle","abstract":"<p><code>ComponentLifecycle</code> provides a basic mechanism to cleanly startup and shutdown a subsystem in a larger application, freeing resources in order before exiting.</p>"},"Classes.html":{"name":"Classes","abstract":"<p>The following classes are available globally.</p>"},"Protocols.html":{"name":"Protocols","abstract":"<p>The following protocols are available globally.</p>"},"Structs.html":{"name":"Structures","abstract":"<p>The following structures are available globally.</p>"}} |