mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 10:45:54 +00:00
Some checks failed
Build Test / 🚀 Deploy to test env (fly.io) (push) Has been cancelled
Build Test / 🛠 Build (1.17, 18.x, 27) (push) Has been cancelled
Build Develop / 🛠 Build (1.17, 18.x, 27) (push) Has been cancelled
🧪 Test Suite / Test Suite (push) Has been cancelled
Build Develop / 🛠 Build Docker Images (linux/amd64) (push) Has been cancelled
Build Develop / 🛠 Build Docker Images (linux/arm64) (push) Has been cancelled
Build Develop / merge (push) Has been cancelled
Build Develop / 🏷 Notify about develop release (push) Has been cancelled
12 lines
279 B
Elixir
12 lines
279 B
Elixir
defmodule WandererApp.TaskWrapper do
|
|
@environment Application.compile_env(:wanderer_app, :environment)
|
|
|
|
def start_link(module, func, args) do
|
|
if @environment == :test do
|
|
apply(module, func, args)
|
|
else
|
|
Task.start_link(module, func, args)
|
|
end
|
|
end
|
|
end
|