mirror of
https://github.com/swift-server/swift-service-lifecycle
synced 2026-11-27 05:04:26 +00:00
1 line
9.5 KiB
JSON
1 line
9.5 KiB
JSON
{"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 if to install a crash signal trap that prints backtraces.</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV16installBacktraceSbvp":{"name":"installBacktrace","abstract":"<p>Defines what, if any, signals to trap for invoking shutdown.</p>","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV6logger13callbackQueue14shutdownSignal16installBacktraceAE7Logging6LoggerV_8Dispatch0mF0CSayAC0H0VGSgSbtcfc":{"name":"init(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:s23CustomStringConvertibleP11descriptionSSvp":{"name":"description","parent_name":"Signal"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V13configurationA2C13ConfigurationV_tcfc":{"name":"init(configuration:)","abstract":"<p>Creates a <code><a href=\"36f8f5912051ae747ef441d6511ca4cbClasses/ComponentLifecycle.html\">ComponentLifecycle</a></code> instance.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"<p>Starts the provided <code>LifecycleItem</code> array.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V12startAndWaityyKF":{"name":"startAndWait()","abstract":"<p>Starts the provided <code>LifecycleItem</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>LifecycleItem</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:9Lifecycle07ServiceA0V4trap6signal7handler2on8Dispatch0G12SourceSignal_pAC0I0V_yAKcAH0G5QueueCtFZ":{"name":"trap(signal:handler:on:)","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:9Lifecycle07ServiceA0V8registeryyAA0A4Task_pd_tF":{"name":"register(_:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8registeryySayAA0A4Task_pGF":{"name":"register(_:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8register5label5start8shutdownySS_AA0A7HandlerVAItF":{"name":"register(label:start:shutdown:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V16registerShutdown5label_ySS_AA0A7HandlerVtF":{"name":"registerShutdown(label:_:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle/Configuration.html":{"name":"Configuration","abstract":"<p><code>Lifecycle</code> configuration options.</p>","parent_name":"ServiceLifecycle"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerVyACyys5Error_pSgcccfc":{"name":"init(_:)","abstract":"<p>Initialize a <code>Lifecycle.Handler</code> based on a completion handler.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV5asyncyACyys5Error_pSgccFZ":{"name":"async(_:)","abstract":"<p>Asynchronous <code>Lifecycle.Handler</code> based on a completion handler.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV4syncyACyyKcFZ":{"name":"sync(_:)","abstract":"<p>Asynchronous <code>Lifecycle.Handler</code> based on a blocking, throwing function.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV4noneACvpZ":{"name":"none","abstract":"<p>Noop <code>Lifecycle.Handler</code>.</p>","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html":{"name":"LifecycleHandler","abstract":"<p>Supported startup and shutdown method styles</p>"},"Structs/ServiceLifecycle.html":{"name":"ServiceLifecycle","abstract":"<p>Undocumented</p>"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP5labelSSvp":{"name":"label","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>"},"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>LifecycleItem</code> array.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5start2on_y8Dispatch0E5QueueC_ys5Error_pSgctF":{"name":"start(on:_:)","abstract":"<p>Starts the provided <code>LifecycleItem</code> array.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C12startAndWait2ony8Dispatch0G5QueueC_tKF":{"name":"startAndWait(on:)","abstract":"<p>Starts the provided <code>LifecycleItem</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>LifecycleItem</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:9Lifecycle09ComponentA0C8registeryyAA0A4Task_pd_tF":{"name":"register(_:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8registeryySayAA0A4Task_pGF":{"name":"register(_:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8register5label5start8shutdownySS_AA0A7HandlerVAItF":{"name":"register(label:start:shutdown:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C16registerShutdown5label_ySS_AA0A7HandlerVtF":{"name":"registerShutdown(label:_:)","abstract":"<p>Adds a <code>Task</code> to a <code>Tasks</code> collection.</p>","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html":{"name":"ComponentLifecycle","abstract":"<p><code>Lifecycle</code> provides a basic mechanism to cleanly startup and shutdown the 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>"}} |