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 beClonefor agent supervision/retryMutex: Provides interior mutability to take ownership of the senderOption: 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 */ }