Drafter.WidgetPidRegistry (drafter v0.3.1)

Copy Markdown View Source

Maps widget ids to their server processes, scoped to the owning session.

Keys are qualified by the session, identified by its compositor, so the same widget id used by concurrent sessions resolves within the caller's own session.

Summary

Functions

clear()

@spec clear() :: :ok

clear_session()

@spec clear_session() :: :ok

Drop every registration belonging to the calling session.

create()

@spec create() :: :ok

lookup(widget_id)

@spec lookup(term()) :: pid() | nil

register(widget_id, pid)

@spec register(term(), pid()) :: :ok

unregister(widget_id)

@spec unregister(term()) :: :ok