Run every fun in tasks concurrently, take the first to return.
The winner is stored under the collect_as key.
Summary
Types
@type t() :: %Caravela.Flow.Steps.Race{ collect_as: atom(), tasks: [(-> any())], timeout: non_neg_integer() }
Run every fun in tasks concurrently, take the first to return.
The winner is stored under the collect_as key.
@type t() :: %Caravela.Flow.Steps.Race{ collect_as: atom(), tasks: [(-> any())], timeout: non_neg_integer() }