Skip to content

Asyncio practice problems in Python

Difficulty:
Category:
Tag:

Showing 15 of 15

Status Title Difficulty
aclosing: release the connection on break, error and cancellation Hard
A Fetcher Protocol three implementations can satisfy Medium
asyncify: a ParamSpec wrapper that does not block the loop Medium
BackgroundTasks: strong references, and a drain that raises Medium
Capstone: a fully typed, cancellable, observable async worker pool Hard
Capstone: a typed, cancellable, observable worker pool Hard
Deadline: one budget, many nested scopes Medium
Detecting leaked tasks and forcing a race Medium
fetch_all: structured fan-out with TaskGroup Medium
Placement 5/6: async cancellation Hard
process_stream: a bounded pipeline that cannot hang Medium
request_context: an id that survives tasks and threads Medium
run_sync: the sync boundary a library should expose Easy
Service.serve: a shutdown that is bounded and returns Hard
with_cleanup: bounded cleanup on every exit path Hard