by wvenable · 5y ago · 0 comments
So in addition to the await and the implicit sync:
do_something().await;
do_something();
You also need a way to directly call the sync and async version: do_something().sync; // I really want the sync version
do_something().async; // I want the Promise result do_something().await; // Its clear that we're using the async version
do_something::<sync>(); // I really want the sync version, even in async contexts