You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to reduce verbosity in some tests that I wrote for a library relying on embassy-time I would like to write something similar to the futures-test::test macro enable which would look like this :
#[embassy_executor::test]asyncfnmy_test(){let fut = async{true};assert!(fut.await);}
Which would expand in something equivalent to the code that I would write manually :
#[test]fnmy_test(){
embassy_futures::block_on(asyncmove{let fut = async{true};assert!(fut.await);})}
Do you think this is a nice feature to have ?
The text was updated successfully, but these errors were encountered:
In order to reduce verbosity in some tests that I wrote for a library relying on
embassy-time
I would like to write something similar to thefutures-test::test
macro enable which would look like this :Which would expand in something equivalent to the code that I would write manually :
Do you think this is a nice feature to have ?
The text was updated successfully, but these errors were encountered: