Treeprit.run
You're seeing just the function
run
, go back to Treeprit module for more information.
Specs
run( %Treeprit{ errors: term(), failed_operations: term(), names: term(), operations: term(), results: term(), skipped_operations: term(), successful_operations: term(), total_operations: term() }, atom(), atom() | function() ) :: %Treeprit{ errors: term(), failed_operations: term(), names: term(), operations: term(), results: term(), skipped_operations: term(), successful_operations: term(), total_operations: term() }
Add operation to Treeprit
Examples
iex> Treeprit.new() |> Treeprit.run(:first, fn _ -> {:ok, "run me"} end) |> Treeprit.finally()
%Treeprit{
results: %{
second: "run me",
},
errors: %{},
successful_operations: 1,
failed_operations: 0,
skipped_operations: 1,
total_operations: 2
}