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
I just ran across this procedural macro (function that generates code at compile time) library called maybe-async-cfg.
Basically, this would allow conditionally exposing/compiling async or sync (or both) flavored APIs. The beauty is that we'd only have to write the async code, and this maybe-async-cfg library will generate the sync flavored API.
Considerations
This isn't hard requirement. User's can still wrap sync code in an async runtime tasks.
Addressing this may not be as easy as adding await and async keywords where applicable.
The library already has a block-less RF24::write() function designed for using interrupts...
I just ran across this procedural macro (function that generates code at compile time) library called
maybe-async-cfg
.Basically, this would allow conditionally exposing/compiling async or sync (or both) flavored APIs. The beauty is that we'd only have to write the async code, and this
maybe-async-cfg
library will generate the sync flavored API.Considerations
await
andasync
keywords where applicable.RF24::write()
function designed for using interrupts...The text was updated successfully, but these errors were encountered: