by brandonbloom · 1y ago · 0 comments
var a = io.async(doWork, .{ io, "hard" });
...
a.await(io);
If your `io` is async, this behaves like an async call returning a promise and then awaiting said promise. If `io` is sync then `io.async` will make the call immediately and `await` is a no-op.