tide v0.3.1 Tide.Server behaviour View Source

The Tide.Server is similar to GenServer but create a Ruby worker pool.

You can create your own supervisor with

defmodule MyApp.Supervisor do
  use Tide.Server

  def size(), do: Application.get_env(:tide, :workers, 4)
end

Link to this section Summary

Functions

Pick a worker and emit event

Pick a worker and exec event

Callbacks

Set the max overflow worker

Set the worker size

Link to this section Functions

Link to this function

emit(handler, event, args)

View Source

Pick a worker and emit event

See Tide.Worker.emit/4

Link to this function

exec(handler, event, args)

View Source

Pick a worker and exec event

See Tide.Worker.exec/4

Link to this section Callbacks

Set the max overflow worker

Set the worker size