split-async 0.1.1

A procedural macro to generate sync and async versions of a function
Documentation
1
2
3
4
5
6
7
8
9
10
11
use split_async::split;
fn sync_func(x: usize) -> usize {
    fn nested() {
        let deep = || {};
    }
}
async fn async_func(x: usize) -> usize {
    fn nested() {
        let deep = async { async || {} };
    }
}