Function horde::collect::defer_unchecked[][src]

pub unsafe fn defer_unchecked<F>(f: F) where
    F: FnOnce(),
    F: Send

This schedules a closure to run at some point after all threads are outside their current pinned regions.

The closure will be called by the collect method.

Safety

This method is unsafe since the closure is not required to be 'static. It’s up to the caller to ensure the closure does not access freed memory. A move closure is recommended to avoid accidental references to stack variables.