Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(async_await)]
- async fn bar() {
- }
- pub async fn foo() {
- std::thread::spawn(move || ());
- bar().await;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement