Core.Capability.WorkQueue (ServCore v0.3.0)

Copy Markdown View Source

Work queue capability with configurable worker module.

Starts a named JobQueue and a WorkerPool that polls it.

Options

Example

{Core.Capability.WorkQueue,
  name: MyApp.WorkQueue,
  queue: MyApp.Queue,
  worker: MyApp.Worker}

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)