oa_gateway_adapter

Module supervise

Source
Expand description

Shared panic and retry supervision for an adapter whose run is a loop of independent sessions (connect, bridge, disconnect; repeat).

An adapter with this shape spawns each session on its own child task, so a panic inside one is a [tokio::task::JoinError] rather than an unwind that would otherwise take the retry loop down with it. after_join is the pure decision at the center of that loop: given how a session ended and what this adapter’s config says to do about it, it says whether to stop, fail, or try again.

Enums§

  • What a session retry loop does after one session task ends.
  • What an adapter does when its session task panics.

Functions§

  • Maps a joined session result onto abort, return, or retry.