Function perseus::prelude::spawn_local_scoped
source · pub fn spawn_local_scoped<'a>(
cx: BoundedScope<'a, 'a>,
f: impl Future<Output = ()> + 'a
)
Expand description
Spawns a !Send
future on the current scope. If the scope is destroyed before the future is
completed, it is aborted immediately. This ensures that it is impossible to access any
values referencing the scope after they are destroyed.