Bash.Session.ExecRef (Bash v0.6.0)

Copy Markdown View Source

Opaque handle to an in-flight execution.

Returned by Bash.Session.execute_async/3 and accepted by Bash.Session.await/2 and Bash.Session.signal/2.

The caller holds :monitor so await/2 can detect a session crash without a round-trip through the GenServer.

Summary

Types

t()

@type t() :: %Bash.Session.ExecRef{
  monitor: reference(),
  ref: reference(),
  session: pid()
}