Also Sync
This library provides a macro to automatically derive a
*_sync
version from your async functions. It does so
by having a global tokio runtime with all features
on all cores.
This allows a async-first library development while supporting sync.
How does it work?
Take a look at the following piece of code:
use also_sync;
;
This is literally just converted to
;
Of course if works for simple functions as well.