pub unsafe fn spawn_local<F>(future: F) where
    F: Future + 'static,
    F::Output: 'static, 
Expand description

Safety

  • TaskStream must be used on the original thread.