Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

massive refactoring of the package #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

kucherenkovova
Copy link
Owner

  • removed Stop method, now the only way to stop the app is to cancel the context
  • run initializers and closers concurrently by default (check WithConcurrency option)
  • added InitSync and CloseSync functions. Use these functions if you want to enforce your component to be initialized/closed synchronously
  • removed OnPanic function, you should use WithPanicHandler option now
  • made graceful shutdown functionality optional, see WithGracefulShutdown option
  • Register now accepts options. See RegisterOption

- removed `Stop` method, now the only way to stop the app is to cancel the context
- run initializers and closers concurrently by default (check `WithConcurrency` option)
- added `InitSync` and `CloseSync` functions. Use these functions if you want to enforce your component to be initialized/closed synchronously
- removed `OnPanic` function, you should use `WithPanicHandler` option now
- made graceful shutdown functionality optional, see `WithGracefulShutdown` option
- `Register` now accepts options. See `RegisterOption`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant