ResponseChannel

Type Alias ResponseChannel 

Source
pub type ResponseChannel<T> = Arc<Mutex<Option<Sender<T>>>>;
Expand description

Standard response channel type for web handler requests

This type wraps a oneshot sender in Arc<Mutex<Option<...>>> to satisfy the requirements of acton-reactive message passing:

  • Arc: Messages must be Clone for agent supervision/retry
  • Mutex: Provides interior mutability to take ownership of the sender
  • Option: Allows taking the sender exactly once when responding

§Type Parameter

  • T - The type of value to send through the channel

Aliased Type§

pub struct ResponseChannel<T> { /* private fields */ }