Skip to main content

AsyncReceiver

Type Alias AsyncReceiver 

Source
pub type AsyncReceiver = AsyncReceiverGeneric<TokioRuntime>;
Expand description

Async receiver wrapper for Tokio runtime.

This is a type alias for the generic async receiver parameterized with the Tokio runtime. It provides async versions of the crate::Receiver methods by running blocking NDI operations on Tokio’s blocking thread pool using spawn_blocking.

§Thread Safety

The underlying Receiver is wrapped in an Arc to allow sharing across async tasks and safe cloning. The NDI SDK receiver is inherently thread-safe.

§Error Handling

All methods return crate::Result, converting any task panic or cancellation into crate::Error::SpawnFailed rather than propagating the panic.

Aliased Type§

pub struct AsyncReceiver { /* private fields */ }