View Source Gitly.Task (gitly v0.1.0)
A struct to represent a task.
Summary
Functions
Run all tasks asynchronously.
Run all tasks but stop when an error occurs.
Run tasks one by one and stop when a task succeeds.
Functions
@spec run_all_tasks([ %Gitly.Task{error: term(), label: term(), result: term(), task: term()} ]) :: map()
Run all tasks asynchronously.
@spec run_until_error( [%Gitly.Task{error: term(), label: term(), result: term(), task: term()}], number() ) :: map()
Run all tasks but stop when an error occurs.
@spec run_until_success( [%Gitly.Task{error: term(), label: term(), result: term(), task: term()}], number() ) :: map()
Run tasks one by one and stop when a task succeeds.