itk_queue v0.12.1 ITKQueue.PublisherPool View Source

Supervises the pool of channels for publishing

Link to this section Summary

Functions

Return a channel to the pool

Retrieves a channel from the pool

Returns a specification to start this module under a supervisor

Callback invoked to start the supervisor and during hot code upgrades

Provides a new channel from the pool

Link to this section Functions

Return a channel to the pool.

Retrieves a channel from the pool.

You are responsible for returning this channel to the pool when you are done with it.

Example: {ref, channel} = ITKQueue.PublisherPool.checkout # … do something with the channel ITKQueue.PublisherPool.checkin(ref)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

Provides a new channel from the pool.

Example: ITKQueue.PublisherPool.with_channel(fn(channel) ->

# ... do something with the channel

end)