");
+ $input.on("blur.tt", function($e) {
+ var active, isActive, hasActive;
+ active = document.activeElement;
+ isActive = $menu.is(active);
+ hasActive = $menu.has(active).length > 0;
+ if (_.isMsie() && (isActive || hasActive)) {
+ $e.preventDefault();
+ $e.stopImmediatePropagation();
+ _.defer(function() {
+ $input.focus();
+ });
+ }
+ });
+ $menu.on("mousedown.tt", function($e) {
+ $e.preventDefault();
+ });
+ },
+ _onSelectableClicked: function onSelectableClicked(type, $el) {
+ this.select($el);
+ },
+ _onDatasetCleared: function onDatasetCleared() {
+ this._updateHint();
+ },
+ _onDatasetRendered: function onDatasetRendered(type, suggestions, async, dataset) {
+ this._updateHint();
+ if (this.autoselect) {
+ var cursorClass = this.selectors.cursor.substr(1);
+ this.menu.$node.find(this.selectors.suggestion).first().addClass(cursorClass);
+ }
+ this.eventBus.trigger("render", suggestions, async, dataset);
+ },
+ _onAsyncRequested: function onAsyncRequested(type, dataset, query) {
+ this.eventBus.trigger("asyncrequest", query, dataset);
+ },
+ _onAsyncCanceled: function onAsyncCanceled(type, dataset, query) {
+ this.eventBus.trigger("asynccancel", query, dataset);
+ },
+ _onAsyncReceived: function onAsyncReceived(type, dataset, query) {
+ this.eventBus.trigger("asyncreceive", query, dataset);
+ },
+ _onFocused: function onFocused() {
+ this._minLengthMet() && this.menu.update(this.input.getQuery());
+ },
+ _onBlurred: function onBlurred() {
+ if (this.input.hasQueryChangedSinceLastFocus()) {
+ this.eventBus.trigger("change", this.input.getQuery());
+ }
+ },
+ _onEnterKeyed: function onEnterKeyed(type, $e) {
+ var $selectable;
+ if ($selectable = this.menu.getActiveSelectable()) {
+ if (this.select($selectable)) {
+ $e.preventDefault();
+ $e.stopPropagation();
+ }
+ } else if (this.autoselect) {
+ if (this.select(this.menu.getTopSelectable())) {
+ $e.preventDefault();
+ $e.stopPropagation();
+ }
+ }
+ },
+ _onTabKeyed: function onTabKeyed(type, $e) {
+ var $selectable;
+ if ($selectable = this.menu.getActiveSelectable()) {
+ this.select($selectable) && $e.preventDefault();
+ } else if (this.autoselect) {
+ if ($selectable = this.menu.getTopSelectable()) {
+ this.autocomplete($selectable) && $e.preventDefault();
+ }
+ }
+ },
+ _onEscKeyed: function onEscKeyed() {
+ this.close();
+ },
+ _onUpKeyed: function onUpKeyed() {
+ this.moveCursor(-1);
+ },
+ _onDownKeyed: function onDownKeyed() {
+ this.moveCursor(+1);
+ },
+ _onLeftKeyed: function onLeftKeyed() {
+ if (this.dir === "rtl" && this.input.isCursorAtEnd()) {
+ this.autocomplete(this.menu.getActiveSelectable() || this.menu.getTopSelectable());
+ }
+ },
+ _onRightKeyed: function onRightKeyed() {
+ if (this.dir === "ltr" && this.input.isCursorAtEnd()) {
+ this.autocomplete(this.menu.getActiveSelectable() || this.menu.getTopSelectable());
+ }
+ },
+ _onQueryChanged: function onQueryChanged(e, query) {
+ this._minLengthMet(query) ? this.menu.update(query) : this.menu.empty();
+ },
+ _onWhitespaceChanged: function onWhitespaceChanged() {
+ this._updateHint();
+ },
+ _onLangDirChanged: function onLangDirChanged(e, dir) {
+ if (this.dir !== dir) {
+ this.dir = dir;
+ this.menu.setLanguageDirection(dir);
+ }
+ },
+ _openIfActive: function openIfActive() {
+ this.isActive() && this.open();
+ },
+ _minLengthMet: function minLengthMet(query) {
+ query = _.isString(query) ? query : this.input.getQuery() || "";
+ return query.length >= this.minLength;
+ },
+ _updateHint: function updateHint() {
+ var $selectable, data, val, query, escapedQuery, frontMatchRegEx, match;
+ $selectable = this.menu.getTopSelectable();
+ data = this.menu.getSelectableData($selectable);
+ val = this.input.getInputValue();
+ if (data && !_.isBlankString(val) && !this.input.hasOverflow()) {
+ query = Input.normalizeQuery(val);
+ escapedQuery = _.escapeRegExChars(query);
+ frontMatchRegEx = new RegExp("^(?:" + escapedQuery + ")(.+$)", "i");
+ match = frontMatchRegEx.exec(data.val);
+ match && this.input.setHint(val + match[1]);
+ } else {
+ this.input.clearHint();
+ }
+ },
+ isEnabled: function isEnabled() {
+ return this.enabled;
+ },
+ enable: function enable() {
+ this.enabled = true;
+ },
+ disable: function disable() {
+ this.enabled = false;
+ },
+ isActive: function isActive() {
+ return this.active;
+ },
+ activate: function activate() {
+ if (this.isActive()) {
+ return true;
+ } else if (!this.isEnabled() || this.eventBus.before("active")) {
+ return false;
+ } else {
+ this.active = true;
+ this.eventBus.trigger("active");
+ return true;
+ }
+ },
+ deactivate: function deactivate() {
+ if (!this.isActive()) {
+ return true;
+ } else if (this.eventBus.before("idle")) {
+ return false;
+ } else {
+ this.active = false;
+ this.close();
+ this.eventBus.trigger("idle");
+ return true;
+ }
+ },
+ isOpen: function isOpen() {
+ return this.menu.isOpen();
+ },
+ open: function open() {
+ if (!this.isOpen() && !this.eventBus.before("open")) {
+ this.input.setAriaExpanded(true);
+ this.menu.open();
+ this._updateHint();
+ this.eventBus.trigger("open");
+ }
+ return this.isOpen();
+ },
+ close: function close() {
+ if (this.isOpen() && !this.eventBus.before("close")) {
+ this.input.setAriaExpanded(false);
+ this.menu.close();
+ this.input.clearHint();
+ this.input.resetInputValue();
+ this.eventBus.trigger("close");
+ }
+ return !this.isOpen();
+ },
+ setVal: function setVal(val) {
+ this.input.setQuery(_.toStr(val));
+ },
+ getVal: function getVal() {
+ return this.input.getQuery();
+ },
+ select: function select($selectable) {
+ var data = this.menu.getSelectableData($selectable);
+ if (data && !this.eventBus.before("select", data.obj, data.dataset)) {
+ this.input.setQuery(data.val, true);
+ this.eventBus.trigger("select", data.obj, data.dataset);
+ this.close();
+ return true;
+ }
+ return false;
+ },
+ autocomplete: function autocomplete($selectable) {
+ var query, data, isValid;
+ query = this.input.getQuery();
+ data = this.menu.getSelectableData($selectable);
+ isValid = data && query !== data.val;
+ if (isValid && !this.eventBus.before("autocomplete", data.obj, data.dataset)) {
+ this.input.setQuery(data.val);
+ this.eventBus.trigger("autocomplete", data.obj, data.dataset);
+ return true;
+ }
+ return false;
+ },
+ moveCursor: function moveCursor(delta) {
+ var query, $candidate, data, suggestion, datasetName, cancelMove, id;
+ query = this.input.getQuery();
+ $candidate = this.menu.selectableRelativeToCursor(delta);
+ data = this.menu.getSelectableData($candidate);
+ suggestion = data ? data.obj : null;
+ datasetName = data ? data.dataset : null;
+ id = $candidate ? $candidate.attr("id") : null;
+ this.input.trigger("cursorchange", id);
+ cancelMove = this._minLengthMet() && this.menu.update(query);
+ if (!cancelMove && !this.eventBus.before("cursorchange", suggestion, datasetName)) {
+ this.menu.setCursor($candidate);
+ if (data) {
+ if (typeof data.val === "string") {
+ this.input.setInputValue(data.val);
+ }
+ } else {
+ this.input.resetInputValue();
+ this._updateHint();
+ }
+ this.eventBus.trigger("cursorchange", suggestion, datasetName);
+ return true;
+ }
+ return false;
+ },
+ destroy: function destroy() {
+ this.input.destroy();
+ this.menu.destroy();
+ }
+ });
+ return Typeahead;
+ function c(ctx) {
+ var methods = [].slice.call(arguments, 1);
+ return function() {
+ var args = [].slice.call(arguments);
+ _.each(methods, function(method) {
+ return ctx[method].apply(ctx, args);
+ });
+ };
+ }
+ }();
+ (function() {
+ "use strict";
+ var old, keys, methods;
+ old = $.fn.typeahead;
+ keys = {
+ www: "tt-www",
+ attrs: "tt-attrs",
+ typeahead: "tt-typeahead"
+ };
+ methods = {
+ initialize: function initialize(o, datasets) {
+ var www;
+ datasets = _.isArray(datasets) ? datasets : [].slice.call(arguments, 1);
+ o = o || {};
+ www = WWW(o.classNames);
+ return this.each(attach);
+ function attach() {
+ var $input, $wrapper, $hint, $menu, defaultHint, defaultMenu, eventBus, input, menu, status, typeahead, MenuConstructor;
+ _.each(datasets, function(d) {
+ d.highlight = !!o.highlight;
+ });
+ $input = $(this);
+ $wrapper = $(www.html.wrapper);
+ $hint = $elOrNull(o.hint);
+ $menu = $elOrNull(o.menu);
+ defaultHint = o.hint !== false && !$hint;
+ defaultMenu = o.menu !== false && !$menu;
+ defaultHint && ($hint = buildHintFromInput($input, www));
+ defaultMenu && ($menu = $(www.html.menu).css(www.css.menu));
+ $hint && $hint.val("");
+ $input = prepInput($input, www);
+ if (defaultHint || defaultMenu) {
+ $wrapper.css(www.css.wrapper);
+ $input.css(defaultHint ? www.css.input : www.css.inputWithNoHint);
+ $input.wrap($wrapper).parent().prepend(defaultHint ? $hint : null).append(defaultMenu ? $menu : null);
+ }
+ MenuConstructor = defaultMenu ? DefaultMenu : Menu;
+ eventBus = new EventBus({
+ el: $input
+ });
+ input = new Input({
+ hint: $hint,
+ input: $input,
+ menu: $menu
+ }, www);
+ menu = new MenuConstructor({
+ node: $menu,
+ datasets: datasets
+ }, www);
+ status = new Status({
+ $input: $input,
+ menu: menu
+ });
+ typeahead = new Typeahead({
+ input: input,
+ menu: menu,
+ eventBus: eventBus,
+ minLength: o.minLength,
+ autoselect: o.autoselect
+ }, www);
+ $input.data(keys.www, www);
+ $input.data(keys.typeahead, typeahead);
+ }
+ },
+ isEnabled: function isEnabled() {
+ var enabled;
+ ttEach(this.first(), function(t) {
+ enabled = t.isEnabled();
+ });
+ return enabled;
+ },
+ enable: function enable() {
+ ttEach(this, function(t) {
+ t.enable();
+ });
+ return this;
+ },
+ disable: function disable() {
+ ttEach(this, function(t) {
+ t.disable();
+ });
+ return this;
+ },
+ isActive: function isActive() {
+ var active;
+ ttEach(this.first(), function(t) {
+ active = t.isActive();
+ });
+ return active;
+ },
+ activate: function activate() {
+ ttEach(this, function(t) {
+ t.activate();
+ });
+ return this;
+ },
+ deactivate: function deactivate() {
+ ttEach(this, function(t) {
+ t.deactivate();
+ });
+ return this;
+ },
+ isOpen: function isOpen() {
+ var open;
+ ttEach(this.first(), function(t) {
+ open = t.isOpen();
+ });
+ return open;
+ },
+ open: function open() {
+ ttEach(this, function(t) {
+ t.open();
+ });
+ return this;
+ },
+ close: function close() {
+ ttEach(this, function(t) {
+ t.close();
+ });
+ return this;
+ },
+ select: function select(el) {
+ var success = false, $el = $(el);
+ ttEach(this.first(), function(t) {
+ success = t.select($el);
+ });
+ return success;
+ },
+ autocomplete: function autocomplete(el) {
+ var success = false, $el = $(el);
+ ttEach(this.first(), function(t) {
+ success = t.autocomplete($el);
+ });
+ return success;
+ },
+ moveCursor: function moveCursoe(delta) {
+ var success = false;
+ ttEach(this.first(), function(t) {
+ success = t.moveCursor(delta);
+ });
+ return success;
+ },
+ val: function val(newVal) {
+ var query;
+ if (!arguments.length) {
+ ttEach(this.first(), function(t) {
+ query = t.getVal();
+ });
+ return query;
+ } else {
+ ttEach(this, function(t) {
+ t.setVal(_.toStr(newVal));
+ });
+ return this;
+ }
+ },
+ destroy: function destroy() {
+ ttEach(this, function(typeahead, $input) {
+ revert($input);
+ typeahead.destroy();
+ });
+ return this;
+ }
+ };
+ $.fn.typeahead = function(method) {
+ if (methods[method]) {
+ return methods[method].apply(this, [].slice.call(arguments, 1));
+ } else {
+ return methods.initialize.apply(this, arguments);
+ }
+ };
+ $.fn.typeahead.noConflict = function noConflict() {
+ $.fn.typeahead = old;
+ return this;
+ };
+ function ttEach($els, fn) {
+ $els.each(function() {
+ var $input = $(this), typeahead;
+ (typeahead = $input.data(keys.typeahead)) && fn(typeahead, $input);
+ });
+ }
+ function buildHintFromInput($input, www) {
+ return $input.clone().addClass(www.classes.hint).removeData().css(www.css.hint).css(getBackgroundStyles($input)).prop({
+ readonly: true,
+ required: false
+ }).removeAttr("id name placeholder").removeClass("required").attr({
+ spellcheck: "false",
+ tabindex: -1
+ });
+ }
+ function prepInput($input, www) {
+ $input.data(keys.attrs, {
+ dir: $input.attr("dir"),
+ autocomplete: $input.attr("autocomplete"),
+ spellcheck: $input.attr("spellcheck"),
+ style: $input.attr("style")
+ });
+ $input.addClass(www.classes.input).attr({
+ spellcheck: false
+ });
+ try {
+ !$input.attr("dir") && $input.attr("dir", "auto");
+ } catch (e) {}
+ return $input;
+ }
+ function getBackgroundStyles($el) {
+ return {
+ backgroundAttachment: $el.css("background-attachment"),
+ backgroundClip: $el.css("background-clip"),
+ backgroundColor: $el.css("background-color"),
+ backgroundImage: $el.css("background-image"),
+ backgroundOrigin: $el.css("background-origin"),
+ backgroundPosition: $el.css("background-position"),
+ backgroundRepeat: $el.css("background-repeat"),
+ backgroundSize: $el.css("background-size")
+ };
+ }
+ function revert($input) {
+ var www, $wrapper;
+ www = $input.data(keys.www);
+ $wrapper = $input.parent().filter(www.selectors.wrapper);
+ _.each($input.data(keys.attrs), function(val, key) {
+ _.isUndefined(val) ? $input.removeAttr(key) : $input.attr(key, val);
+ });
+ $input.removeData(keys.typeahead).removeData(keys.www).removeData(keys.attr).removeClass(www.classes.input);
+ if ($wrapper.length) {
+ $input.detach().insertAfter($wrapper);
+ $wrapper.remove();
+ }
+ }
+ function $elOrNull(obj) {
+ var isValid, $el;
+ isValid = _.isJQuery(obj) || _.isElement(obj);
+ $el = isValid ? $(obj).first() : [];
+ return $el.length ? $el : null;
+ }
+ })();
+});
\ No newline at end of file
diff --git a/docs/Lifecycle/search.json b/docs/Lifecycle/search.json
new file mode 100644
index 0000000..8242e37
--- /dev/null
+++ b/docs/Lifecycle/search.json
@@ -0,0 +1 @@
+{"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV6logger7Logging6LoggerVvp":{"name":"logger","abstract":"
Defines the Logger to log with.
","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV13callbackQueue8Dispatch0fE0Cvp":{"name":"callbackQueue","abstract":"
Defines the DispatchQueue on which startup and shutdown callback handlers are run.
","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV14shutdownSignalSayAC0E0VGSgvp":{"name":"shutdownSignal","abstract":"
Defines if to install a crash signal trap that prints backtraces.
","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV16installBacktraceSbvp":{"name":"installBacktrace","abstract":"
Defines what, if any, signals to trap for invoking shutdown.
","parent_name":"Configuration"},"Structs/ServiceLifecycle/Configuration.html#/s:9Lifecycle07ServiceA0V13ConfigurationV6logger13callbackQueue14shutdownSignal16installBacktraceAE7Logging6LoggerV_8Dispatch0mF0CSayAC0H0VGSgSbtcfc":{"name":"init(logger:callbackQueue:shutdownSignal:installBacktrace:)","abstract":"
Undocumented
","parent_name":"Configuration"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV4TERMAEvpZ":{"name":"TERM","abstract":"
Undocumented
","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:9Lifecycle07ServiceA0V6SignalV3INTAEvpZ":{"name":"INT","abstract":"
Undocumented
","parent_name":"Signal"},"Structs/ServiceLifecycle/Signal.html#/s:s23CustomStringConvertibleP11descriptionSSvp":{"name":"description","parent_name":"Signal"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V13configurationA2C13ConfigurationV_tcfc":{"name":"init(configuration:)","abstract":"
Creates a ComponentLifecycle instance.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"
Starts the provided LifecycleItem array.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V12startAndWaityyKF":{"name":"startAndWait()","abstract":"
Starts the provided LifecycleItem array and waits (blocking) until a shutdown Signal is captured or shutdown is called on another thread.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8shutdownyyys5Error_pSgcF":{"name":"shutdown(_:)","abstract":"
Shuts down the LifecycleItem array provided in start or startAndWait.","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V4waityyF":{"name":"wait()","abstract":"
Waits (blocking) until shutdown Signal is captured or shutdown is invoked on another thread.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V4trap6signal7handler2on8Dispatch0G12SourceSignal_pAC0I0V_yAKcAH0G5QueueCtFZ":{"name":"trap(signal:handler:on:)","abstract":"
Setup a signal trap.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle/Signal.html":{"name":"Signal","abstract":"
A system signal
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8registeryyAA0A4Task_pd_tF":{"name":"register(_:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8registeryySayAA0A4Task_pGF":{"name":"register(_:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V8register5label5start8shutdownySS_AA0A7HandlerVAItF":{"name":"register(label:start:shutdown:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle.html#/s:9Lifecycle07ServiceA0V16registerShutdown5label_ySS_AA0A7HandlerVtF":{"name":"registerShutdown(label:_:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ServiceLifecycle"},"Structs/ServiceLifecycle/Configuration.html":{"name":"Configuration","abstract":"
Lifecycle configuration options.
","parent_name":"ServiceLifecycle"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerVyACyys5Error_pSgcccfc":{"name":"init(_:)","abstract":"
Initialize a Lifecycle.Handler based on a completion handler.
","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV5asyncyACyys5Error_pSgccFZ":{"name":"async(_:)","abstract":"
Asynchronous Lifecycle.Handler based on a completion handler.
","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV4syncyACyyKcFZ":{"name":"sync(_:)","abstract":"
Asynchronous Lifecycle.Handler based on a blocking, throwing function.
","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html#/s:9Lifecycle0A7HandlerV4noneACvpZ":{"name":"none","abstract":"
Noop Lifecycle.Handler.
","parent_name":"LifecycleHandler"},"Structs/LifecycleHandler.html":{"name":"LifecycleHandler","abstract":"
Supported startup and shutdown method styles
"},"Structs/ServiceLifecycle.html":{"name":"ServiceLifecycle","abstract":"
Undocumented
"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP5labelSSvp":{"name":"label","abstract":"
Undocumented
","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"
Undocumented
","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html#/s:9Lifecycle0A4TaskP8shutdownyyys5Error_pSgcF":{"name":"shutdown(_:)","abstract":"
Undocumented
","parent_name":"LifecycleTask"},"Protocols/LifecycleTask.html":{"name":"LifecycleTask","abstract":"
Represents an item that can be started and shut down
"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5labelSSvp":{"name":"label","abstract":"
Undocumented
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5label6loggerACSS_7Logging6LoggerVSgtcfc":{"name":"init(label:logger:)","abstract":"
Creates a ComponentLifecycle instance.
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5startyyys5Error_pSgcF":{"name":"start(_:)","abstract":"
Starts the provided LifecycleItem array.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C5start2on_y8Dispatch0E5QueueC_ys5Error_pSgctF":{"name":"start(on:_:)","abstract":"
Starts the provided LifecycleItem array.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C12startAndWait2ony8Dispatch0G5QueueC_tKF":{"name":"startAndWait(on:)","abstract":"
Starts the provided LifecycleItem array and waits (blocking) until shutdown is called on another thread.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8shutdownyyys5Error_pSgcF":{"name":"shutdown(_:)","abstract":"
Shuts down the LifecycleItem array provided in start or startAndWait.","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C4waityyF":{"name":"wait()","abstract":"
Waits (blocking) until shutdown is invoked on another thread.
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8registeryyAA0A4Task_pd_tF":{"name":"register(_:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8registeryySayAA0A4Task_pGF":{"name":"register(_:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C8register5label5start8shutdownySS_AA0A7HandlerVAItF":{"name":"register(label:start:shutdown:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html#/s:9Lifecycle09ComponentA0C16registerShutdown5label_ySS_AA0A7HandlerVtF":{"name":"registerShutdown(label:_:)","abstract":"
Adds a Task to a Tasks collection.
","parent_name":"ComponentLifecycle"},"Classes/ComponentLifecycle.html":{"name":"ComponentLifecycle","abstract":"
Lifecycle provides a basic mechanism to cleanly startup and shutdown the application, freeing resources in order before exiting.
"},"Classes.html":{"name":"Classes","abstract":"
The following classes are available globally.
"},"Protocols.html":{"name":"Protocols","abstract":"
The following protocols are available globally.
"},"Structs.html":{"name":"Structures","abstract":"
The following structures are available globally.
"}}
\ No newline at end of file
diff --git a/docs/Lifecycle/undocumented.json b/docs/Lifecycle/undocumented.json
new file mode 100644
index 0000000..1edff12
--- /dev/null
+++ b/docs/Lifecycle/undocumented.json
@@ -0,0 +1,82 @@
+{
+ "warnings": [
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 28,
+ "symbol": "LifecycleTask.label",
+ "symbol_kind": "source.lang.swift.decl.var.instance",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 29,
+ "symbol": "LifecycleTask.start(_:)",
+ "symbol_kind": "source.lang.swift.decl.function.method.instance",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 30,
+ "symbol": "LifecycleTask.shutdown(_:)",
+ "symbol_kind": "source.lang.swift.decl.function.method.instance",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 84,
+ "symbol": "ServiceLifecycle",
+ "symbol_kind": "source.lang.swift.decl.struct",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 145,
+ "symbol": "ServiceLifecycle",
+ "symbol_kind": "source.lang.swift.decl.extension",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 167,
+ "symbol": "ServiceLifecycle.Signal.TERM",
+ "symbol_kind": "source.lang.swift.decl.var.static",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 168,
+ "symbol": "ServiceLifecycle.Signal.INT",
+ "symbol_kind": "source.lang.swift.decl.var.static",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 186,
+ "symbol": "ServiceLifecycle",
+ "symbol_kind": "source.lang.swift.decl.extension",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 223,
+ "symbol": "ServiceLifecycle",
+ "symbol_kind": "source.lang.swift.decl.extension",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 235,
+ "symbol": "ServiceLifecycle.Configuration.init(logger:callbackQueue:shutdownSignal:installBacktrace:)",
+ "symbol_kind": "source.lang.swift.decl.function.method.instance",
+ "warning": "undocumented"
+ },
+ {
+ "file": "/code/Sources/Lifecycle/Lifecycle.swift",
+ "line": 255,
+ "symbol": "ComponentLifecycle.label",
+ "symbol_kind": "source.lang.swift.decl.var.instance",
+ "warning": "undocumented"
+ }
+ ],
+ "source_directory": "/code"
+}
\ No newline at end of file
diff --git a/docs/current/Lifecycle/Classes.html b/docs/current/Lifecycle/Classes.html
new file mode 100644
index 0000000..1d81fd5
--- /dev/null
+++ b/docs/current/Lifecycle/Classes.html
@@ -0,0 +1,161 @@
+
+
+
+
Classes Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Lifecycle Reference
+
+ Classes Reference
+
+
+
+
+
+
+
+
+
+
+
Classes
+
The following classes are available globally.
+
+
+
+
+
+
+
+
+
+
+
+
+
ComponentLifecycle
+
+
+
+
+
+
+
+
+
+
+
+
Lifecycle provides a basic mechanism to cleanly startup and shutdown the application, freeing resources in order before exiting.
+
+
See more
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/current/Lifecycle/Classes/ComponentLifecycle.html b/docs/current/Lifecycle/Classes/ComponentLifecycle.html
new file mode 100644
index 0000000..bbef18d
--- /dev/null
+++ b/docs/current/Lifecycle/Classes/ComponentLifecycle.html
@@ -0,0 +1,690 @@
+
+
+
+