Suppose I have an existing
async fn that handles a web request for a user. I want to change it to fire off a new network request—some kind of notification, for debugging or logging. I do not want to block the user on this extra request.
Can I do that with
In C# and JS, calling an
async method automatically schedules the task to run whether anyone ever
awaits the result or not. Python doesn’t do that (like Rust, by default nothing happens until you
await), but I can schedule a task that races freely with the current task, using
asyncio.create_task. But I don’t see a way to do this at all in Rust.