BeamConsole.Lifecycle.RefreshRequest (beam_console v0.5.3)

Copy Markdown View Source

Runs one bounded reconciliation callback without blocking its recorder.

A small guardian monitors the recorder and owns the callback process. This couples callback lifetime to its owner while allowing timeout cancellation to wait for actual process termination before another request starts.

Summary

Functions

Requests cancellation without unlinking the callback from its guardian.

Starts a monitored refresh request owned by owner.

Types

outcome()

@type outcome() :: :ok | :error

Functions

cancel(guardian)

@spec cancel(pid()) :: :ok

Requests cancellation without unlinking the callback from its guardian.

start(owner, requester)

@spec start(pid(), (-> term())) :: {pid(), reference()}

Starts a monitored refresh request owned by owner.