Skip to main content

maybe_send_sync

Macro maybe_send_sync 

Source
macro_rules! maybe_send_sync {
    (dyn $($object:tt)+) => { ... };
}
Expand description

A trait object that is Send + Sync on native and unconstrained in the browser.

Arc<maybe_send_sync!(dyn Handler)> names a handler shared between native tasks; see the module documentation.