Minga.Extension.Instance.Runtime (Minga v0.1.0)

Copy Markdown View Source

Monitored runtime identity owned by an extension Instance.

Summary

Functions

Drops this runtime's monitor and any queued DOWN message.

Returns the existing identity when it already names the process, otherwise monitors it.

Reports whether a DOWN identity matches this runtime.

Monitors and captures a runtime process.

Types

t()

@type t() :: %Minga.Extension.Instance.Runtime{monitor: reference(), pid: pid()}

Functions

demonitor(arg1)

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

Drops this runtime's monitor and any queued DOWN message.

ensure(runtime, pid)

@spec ensure(t() | nil, pid()) :: t()

Returns the existing identity when it already names the process, otherwise monitors it.

matches?(runtime, monitor, pid)

@spec matches?(t(), reference(), pid()) :: boolean()

Reports whether a DOWN identity matches this runtime.

monitor(pid)

@spec monitor(pid()) :: t()

Monitors and captures a runtime process.