SHARE
TWEET

Untitled

a guest Jun 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(async_await)]
  2.  
  3. async fn bar() {
  4. }
  5.  
  6. pub async fn foo() {
  7.     std::thread::spawn(move || ());
  8.     bar().await;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top