MingaEditor.Renderer.AckLease (Minga v0.1.0)

Copy Markdown View Source

Owns the identity and timeout of a frame awaiting frontend acknowledgement.

Summary

Types

t()

@type t() :: %MingaEditor.Renderer.AckLease{
  attempt: MingaEditor.Renderer.FrameAttempt.t(),
  generation: non_neg_integer(),
  output: MingaEditor.RenderPipeline.Input.t(),
  timer_ref: reference()
}

Functions

cancel_timer(arg1)

@spec cancel_timer(t() | nil) :: :ok

matches?(lease, generation, seq)

@spec matches?(t(), non_neg_integer(), non_neg_integer()) :: boolean()

matches_base?(lease, generation, seq, last_applied, last_acknowledged_seq)

@spec matches_base?(
  t(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer(),
  non_neg_integer()
) :: boolean()

start(attempt, output, timeout_ms)