motivation: allow lifecycle handlers to have the library manage the state for them so they do not need to do that manually
changes:
* introduce LifecycleStartHandler and LifecycleShutdownHandler which can handle state on behalf of the lifecycle item
* add registerStateful function to regsiter stateful handlers
* add tests
The README.md only listed 3 of the 4 Configuration options and did not mention the logging option.
Added logging option to the configuration discussion.
Placed it first, which is the same as the argument order for ServiceLifecycle.Configuration.
motivation:
API now includes closure based variants, saving the need to wrap them in .sync
Users have complained that these overloads add confusion, and probably not worth the additional API surface area
changes:
* remove the sync closure API overloads
* update readme, examples and tests
Motivation:
README still contains references to old code
Modifications:
Update README to match recent code adjustments
Result:
Correct code snippets in README
motivation: simplify registering items based on closures
changes:
* rename append to register
* introduce a Handler object that is an enum of sorts for types of startup and shutdown handler signature we support
* refactor tests to use the new code