Oban.Worker.to_string
You're seeing just the function
to_string
, go back to Oban.Worker module for more information.
Specs
Return a string representation of a worker module.
This is particularly useful for normalizing worker names when building custom Ecto queries.
Examples
iex> Oban.Worker.to_string(MyApp.SomeWorker)
"MyApp.SomeWorker"
iex> Oban.Worker.to_string(Elixir.MyApp.SomeWorker)
"MyApp.SomeWorker"
iex> Oban.Worker.to_string("Elixir.MyApp.SomeWorker")
"MyApp.SomeWorker"