defused v0.1.0 Defused
Provides a defused/3
macro similar to Kernel#def/2
but that wraps all
calls to the provided function body in a call to the specified fuse that
will check and blow the fuse as needed.
Link to this section Summary
Link to this section Functions
Examples
use Defused
defused :fuse_name, test(arg) do
case :rand.uniform() < 0.5 do
true -> {:ok, arg}
_ -> {:error, :boom}
end
end