Macro async_inner

Source
async_inner!() { /* proc-macro */ }
Expand description

Uses an inner object and outer handle paradigm to allow for async and blocking implementations without writing the same code twice. There will be a Blocking____Handle and Async____Handle that have an Arc<Inner____>. The macro will take an impl block for _____. The macro will then create an impl block for both handles that simply call the inner object’s methods.

The blocking handle will have a field called rt thats a tokio runtime that can be blocked on.