Aporiae

Hello Async

What if we could specify some tasks for a program to complete without defining the order in which they are completed? There’s an abstraction for that. From “the book”:

“Asynchronous programming […] lets us express our code in terms of potential pausing points and eventual results that takes care of the details of coordination for us.”

If a program’s tasks are largely I/O-bound, async is usually the way to go:

Fundamentals of Asynchronous Programming: Async, Await, Futures, and Streams - The Rust Programming Language

#programming #rust