Skip to main content

FnContextPinBoxSendSync

Trait FnContextPinBoxSendSync 

Source
pub trait FnContextPinBoxSendSync<T>: FnContextSendSync<SendableAsyncTask<T>> { }
Expand description

A trait for functions that return a pinned, boxed, sendable future.

This trait is essential for creating type-erased async function pointers, which is a common pattern for storing and dynamically dispatching different asynchronous handlers in a collection.

Implementorsยง