fix: use run instead of block_on

master
dignifiedquire 5 years ago
parent 1214bc2dee
commit faea222b9c

@ -132,7 +132,7 @@ impl Builder {
}); });
// Run the future as a task. // Run the future as a task.
unsafe { TaskLocalsWrapper::set_current(&wrapped.tag, || smol::block_on(wrapped)) } unsafe { TaskLocalsWrapper::set_current(&wrapped.tag, || smol::run(wrapped)) }
} }
} }

Loading…
Cancel
Save