liveBook · Manning

Task

A task is a defined unit of work, computation, or action directed toward a result or objective.

How 10 Manning books explain it

Python Concurrency with asyncio

An asyncio task is a future-like unit of work that runs a coroutine and eventually contains its result or exception.

How it is used
Runs multiple long-running, primarily I/O-bound coroutines concurrently on one asyncio event loop.
How deep it goes
Explains scheduling, awaiting, cancellation, timeouts, exceptions, futures, and implementation steps, but defers advanced custom awaitable construction.
Examples
Uses delayed coroutines, status messages during waits, an asyncio echo server, slow web requests, and a custom task runner.
What you can do after
Build it from scratch with asyncio.create_task, await results, cancel slow work, and diagnose unobserved task exceptions.

Read how Python Concurrency with asyncio explains task →

Rust Servers, Services, and Apps

An asynchronous task is a schedulable unit of asynchronous computation managed by an asynchronous runtime.

How it is used
Handles concurrent HTTP requests by assigning each request a task scheduled by an async runtime.
How deep it goes
Explains spawning, joining, and future polling through code, while deferring a full explanation of Pin.
Examples
Uses two simulated file reads and a custom timer to show concurrent scheduling and wake-up.
What you can do after
Apply it via Tokio by spawning tasks, awaiting async functions, and joining their handles.

Read how Rust Servers, Services, and Apps explains task →

Secrets of the JavaScript Ninja, Second Edition

A unit of scheduled work processed by a runtime's event loop, such as an event handler or timer callback.

How it is used
Explains why clicks and timer callbacks wait when browser JavaScript is already executing.
How deep it goes
Works through millisecond-by-millisecond queue scenarios and distinguishes task categories without detailing event-loop implementation internals.
Examples
Uses two queued button clicks and a combined click, timeout, and interval timing scenario.
What you can do after
Diagnose/debug with it when handlers start late, and use timers to break expensive work into manageable chunks.

Read how Secrets of the JavaScript Ninja, Second Edition explains task →

.NET in Action, Second Edition

Task is a .NET type representing an asynchronous unit of work that may complete in the future.

How it is used
Uses Tasks to avoid sequential waiting during a comic search that makes HTTP calls.
How deep it goes
Works through async methods, awaited I/O, cancellation tokens, and task coordination; does not develop thread internals.
Examples
Shows an asynchronous comic fetch, a title search using multiple tasks, and a caller that awaits the result.
What you can do after
Apply it via the .NET Task Parallel Library to make cancellable asynchronous HTTP calls.

Read how .NET in Action, Second Edition explains task →

Grokking Concurrency

A task is a logically independent chunk of work that serves as a general abstraction for a unit of execution.

How it is used
Organizes application work into independent units for serial execution, concurrency, and mapping onto available processing resources.
How deep it goes
Defines tasks and contrasts serial, concurrent, and parallel execution, but defers detailed implementation to threads, processes, and runtime systems.
Examples
Uses recipe steps, laundry loads, file writing, image rotation, and screen printing to illustrate task boundaries and dependencies.
What you can do after
Apply it by decomposing a problem into independent work units and checking their dependencies before choosing serial or concurrent execution.

Read how Grokking Concurrency explains task →

Get Programming: Learn to code with Python

A task is a unit of work performed through a sequence of actions or steps to achieve a goal.

How it is used
Uses task decomposition to make programs easier to debug and to structure a document-similarity project.
How deep it goes
Defines dependencies and independence, then stops before choosing implementations for the capstone tasks.
Examples
Uses online ordering and document similarity, including reading files, counting words, and calculating similarity.
What you can do after
Apply it by dividing problems into reusable tasks before selecting implementations.

Read how Get Programming: Learn to code with Python explains task →

Data Storytelling with Altair and AI

A task is a prompt component that specifies the operation or result the generative AI system should perform or produce.

How it is used
Uses a task to specify the operation or result required from ChatGPT in data storytelling and textual context generation.
How deep it goes
Defines tasks, lists common forms, demonstrates title generation, and explains iterative refinement without detailing model internals.
Examples
Uses title generation from a fragility passage and chart annotations or commentaries as concrete task examples.
What you can do after
Apply task instructions to generate titles, summaries, translations, ideas, annotations, and commentaries, then refine prompts iteratively.

Read how Data Storytelling with Altair and AI explains task →

Pro ASP.NET Core 7, Tenth Edition

Task is the .NET abstraction representing an asynchronous operation that may produce a result when it completes.

How it is used
Uses tasks to represent asynchronous HTTP operations and ASP.NET Core action results.
How deep it goes
Explains typed results, continuations, and async/await, but leaves deeper asynchronous and parallel-programming details for further study.
Examples
Demonstrates fetching a web page's content length and awaiting that result in a controller action.
What you can do after
Apply it via async/await to write HTTP helper methods and controller actions that return typed tasks.

Read how Pro ASP.NET Core 7, Tenth Edition explains task →

Modern C, Third Edition

A task is a distinct part of a program's work that can be performed with little or no interaction with other tasks.

How it is used
Organizes concurrent program work into responsibilities that can execute with little interaction.
How deep it goes
Defines task boundaries and illustrates their thread-based execution, but defers detailed synchronization mechanisms.
Examples
Uses the B9 cellular-game tasks for drawing, input, updating, and neighbor accounting.
What you can do after
Evaluate program responsibilities as candidate concurrent tasks and relate each task to a thread control flow.

Read how Modern C, Third Edition explains task →

Rust in Action: Systems programming concepts and techniques

A task is an abstract unit of work whose meaning may range from a thread to a function call or a running program.

How it is used
Frames concurrency models by treating processes, threads, function calls, and running programs as different views of work.
How deep it goes
Defines the term across abstraction levels and relates it to isolation, but stops short of implementation details.
Examples
Uses process threads, function calls, running programs, blocked console output, and virtual machines as concrete cases.
What you can do after
Evaluate task models by comparing their meanings, isolation properties, interference risks, and runtime overhead.

Read how Rust in Action: Systems programming concepts and techniques explains task →

Related concepts

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.