Artículo: AMZ-B0G24WG232

C++23 Coroutines by Example: A Hands-On Cookbook for Scalable Asynchronous Code.

Format:

Kindle

Hardcover

Kindle

Paperback

Detalles del producto
Disponibilidad
Sin stock
Peso con empaque
0.84 kg
Devolución
No
Condición
Nuevo
Producto de
Amazon
Viaja desde
USA

Sobre este producto
  • Are you tired of "Callback Hell"? Is your C++ codebase a tangled web of std::future, std::promise, and nested lambdas that are impossible to debug and maintain? For too long, writing scalable, asynchronous C++ has meant sacrificing readability. We've been forced to invert our logic, manually pass error codes, and live in fear of a single future::get() deadlocking an entire application. Enter C++23 Coroutines. This isn't just a new feature; it's a revolutionary new mindset. Coroutines let you write asynchronous, non-blocking code that looks, reads, and feels perfectly synchronous. It means you can finally use try...catch for error handling. It means you can use a for loop to process a data stream. It means you can write flat, sequential, maintainable logic that just works. C++23 Coroutines by Example is your "get-your-hands-dirty" guide to smashing through the Asynchronous Wall. This is a cookbook, not a dry, 1,000-page academic text. It's built on a simple premise: you learn by doing. Through dozens of practical, battle-tested recipes, you will move from the "what" and "why" to the "how," building real, production-ready components from the ground up. Inside this cookbook, you will master:The "Why": A deep dive into co_await, co_yield, and the co_return keywords.The "How": Go under the hood to build your own custom awaitables, mastering the "Awaitable Contract."Lazy Data Pipelines: Use the new std::generator (C++23) to build efficient, lazy-loading parsers and infinite sequences.Asynchronous I/O: Build non-blocking TCP clients and a scalable echo server that can handle thousands of connections.Concurrency Patterns: Implement your own AsyncMutex, AsyncSemaphore, "fan-out" (when_all), and "race" (when_any) logic.Robust Error Handling: Master "zombie-free" timeouts and cooperative cancellation using the modern std::stop_token.The Bridge to Legacy: Learn the definitive strategy for refactoring your existing std::future and callback-based code, allowing you to modernize your applications safely and incrementally.This is the book for C++ developers who want to stop fighting their tools and start writing the clean, fast, and scalable code they've always wanted.

Sin stock

Seleccione otra opción o busque otro producto.

Este producto viaja de USA a tus manos en