I am using a rust crate that requires the use of async functions, and so my main function looks like this:
#[neon::main]
fn main(mut cx: ModuleContext) -> NeonResult<()> {
cx.export_function("async_fn", async_fn)?;
Ok(())
}
I would like to .await on the async_fn, what is the way to achieve this?