liveBook · Manning

Async runtime

An async runtime is software that schedules asynchronous tasks and drives their suspended computations toward completion.

How 3 Manning books explain it

Rust Servers, Services, and Apps

An asynchronous runtime is software that schedules and executes nonblocking asynchronous operations and tasks.

How it is used
Schedules I/O-waiting tasks so web services can continue processing other work.
How deep it goes
Explains executor polling, waking, and a custom timer Future, while deferring a full explanation of pinning.
Examples
Contrasts simulated sequential and concurrent file reads, then builds a timer Future with an expiration time.
What you can do after
Apply it via Tokio: spawn and join async tasks, then implement a Future that wakes the executor when ready.

Read how Rust Servers, Services, and Apps explains async runtime →

Rust Web Development

An asynchronous runtime schedules and drives asynchronous tasks, managing their progress and associated execution resources.

How it is used
Supports background work while a web server continues accepting requests.
How deep it goes
Explains task and thread management and multiple-runtime tradeoffs, while deferring detailed asynchronous code treatment.
Examples
Uses an asynchronous HTTP GET with Tokio and Reqwest and a hypothetical application containing two runtimes.
What you can do after
Evaluate runtime choices and recognize when dependencies may compile multiple runtimes into an application.

Read how Rust Web Development explains async runtime →

Learn Rust in a Month of Lunches

An async runtime is software that schedules asynchronous tasks, drives Future polling, and determines when suspended computations are polled again.

How it is used
Manages Future polling and provides the execution boundary required to run asynchronous Rust code.
How deep it goes
Explains Pending and Ready, await placement, macro behavior, and runtime expansion, but does not develop runtime internals.
Examples
Uses async_give_8, compiler errors, Tokio macro expansion, and a reqwest HTTP request.
What you can do after
Operate asynchronous Rust programs with Tokio, .await, async functions, and runtime-managed program entry points.

Read how Learn Rust in a Month of Lunches explains async runtime →

Also covered in

What to know first

Related concepts

Questions about async runtime

What is async runtime?

An async runtime is software that schedules asynchronous tasks and drives their suspended computations toward completion.

Which Manning books explain async runtime?

Rust Servers, Services, and Apps, Rust Web Development and Learn Rust in a Month of Lunches.

What should I know before learning async runtime?

Manning books that teach async runtime usually introduce Rust first.

What kinds of async runtime are there?

Kinds of async runtime include Tokio and actix-rt.

What are the parts of async runtime?

Async runtime includes executor.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.