Membrane Core v0.1.0 Membrane.Helper.Retry View Source

Helper for handling scenarios when some actions should be repeated until it succeeds.

Link to this section Summary

Functions

Calls fun until function arbiter decides to stop

Link to this section Types

Link to this type retry_option() View Source
retry_option() ::
  {:times, non_neg_integer()}
  | {:duration, Membrane.Time.t()}
  | {:delay, Membrane.Time.t()}

Link to this section Functions

Link to this function retry(fun, arbiter, params) View Source
retry(
  fun :: (... -> any()),
  arbiter :: (any() -> :retry | :finish),
  params :: [retry_option()]
) :: any()

Calls fun until function arbiter decides to stop