View Source Corn.Scheduler (Corn v0.1.0)

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.

run(name, mod, fun)

@spec run(atom(), atom(), atom()) :: {:ok, pid()}

schedule(arg)

@spec schedule({atom(), atom(), atom(), non_neg_integer()}) :: %{
  required(String.t()) => {:ok, pid() | nil}
}

start_link(opts)