Async with tokio
Regular functions block threads Async doesn’t block threads Before we look at what tokio does, let’s consider how we’d run 3 tasks if they were ‘blocking’ Without Tokio (blocking): If you used std::thread::sleep, the execution would pause (block) for each function call until the sleep duration completes. This means that when you execute the code […]