the_end v0.1.3 TheEnd.AcceptanceStopper

This module’s process stops ranch’s acceptor processes when terminating itself.

So, you should put this module’s spec at last of your application’s supervisor tree.

children = [
  # ... other specs
  worker(TheEnd.AcceptanceStopper,
    [[endpoint: MyApp.Endpoint, gatherer: TheEnd.ListenerGatherer.Plug]])
]

Initialization:

  • :endpoint - endpoint module
  • :gatherer - module that implements TheEnd.ListenerGatherer behaviour

See Also

Link to this section Summary

Link to this section Functions

Link to this function start_link(opts)
Link to this function terminate(arg1, state)