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

Allow GenServer start options to be provided when starting event handlers and process managers #398

Merged
merged 2 commits into from Aug 12, 2020

Conversation

slashdotdash
Copy link
Member

Allow :timeout, :debug, :spawn_opt, and :hibernate_after options to be passed through to GenServer.start_link/3 when starting event handlers and process managers.

Examples

{:ok, pid} = MyEventHandler.start_link(hibernate_after: :timer.seconds(15))

Or supervised:

Supervisor.start_link(
  [
    {ExampleHandler, hibernate_after: :timer.seconds(15)}
  ],
  strategy: :one_for_one
)

…ndlers and process managers

Support `:timeout`, `:debug`, `:spawn_opt`, and `:hibernate_after` GenServer options.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant