https://github.com/miladsade96/pc_async
Python Concurrency with AsyncIO
https://github.com/miladsade96/pc_async
Last synced: about 1 month ago
JSON representation
Python Concurrency with AsyncIO
- Host: GitHub
- URL: https://github.com/miladsade96/pc_async
- Owner: miladsade96
- License: mit
- Created: 2022-08-20T10:16:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-30T11:41:06.000Z (almost 3 years ago)
- Last Synced: 2025-09-07T06:39:32.343Z (about 1 month ago)
- Language: Python
- Size: 99.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pc_async
## Python Concurrency with AsyncIO[](https://www.codefactor.io/repository/github/everlookneversee/pc_async)
[](https://github.com/tterb/atomic-design-ui/blob/master/LICENSEs)









### This repository is an educational purpose repository for your python concurrency learning journey that contains useful notes and code examples.
### Table of contents:
* Chapter 01 - Getting to know asyncio:
* [Notes](pc_async/chapter_01/README.md)
* Code Examples:
* [1_1 - I/O-bound and CPU-bound operations](pc_async/chapter_01/1_1.py)
* [1_2 - Processes and threads in a simple Python application](pc_async/chapter_01/1_2.py)
* [1_3 - Creating a multithreaded Python application](pc_async/chapter_01/1_3.py)
* [1_4 - Creating multiple processes](pc_async/chapter_01/1_4.py)
* [1_5 - Generating and timing the Fibonacci sequence](pc_async/chapter_01/1_5.py)
* [1_6 - Synchronously reading status codes](pc_async/chapter_01/1_6.py)
* [1_7 - Simple Event Loop](pc_async/chapter_01/1_7.py)
* Chapter 02 - Asyncio basics:
* [Notes](pc_async/chapter_02/README.md)
* Code Examples:
* [2_1 - Using the async keyword](pc_async/chapter_02/2_1.py)
* [2_2 - Comparing coroutine to normal functions](pc_async/chapter_02/2_2.py)
* [2_3 - Running a coroutine](pc_async/chapter_02/2_3.py)
* [2_4 - Using await to wait for the result of coroutine](pc_async/chapter_02/2_4.py)
* [2_5 - First application with sleep](pc_async/chapter_02/2_5.py)
* [2_6 - Running two coroutines](pc_async/chapter_02/2_6.py)
* [2_7 - Creating a task](pc_async/chapter_02/2_7.py)
* [2_8 - Running multiple tasks concurrently](pc_async/chapter_02/2_8.py)
* [2_9 - Running code while other operations complete](pc_async/chapter_02/2_9.py)
* [2_10 - Canceling a task](pc_async/chapter_02/2_10.py)
* [2_11 - Creating a timeout for a task with wait_for](pc_async/chapter_02/2_11.py)
* [2_12 - Shielding a task from cancellation](pc_async/chapter_02/2_12.py)
* [2_13 - The basics of futures](pc_async/chapter_02/2_13.py)
* [2_14 - Awaiting a future](pc_async/chapter_02/2_14.py)
* [2_15 - A decorator for timing coroutines](pc_async/chapter_02/2_15.py)
* [2_16 - Timing two concurrent tasks with a decorator](pc_async/chapter_02/2_16.py)
* [2_17 - Attempting to run CPU-bound code concurrently](pc_async/chapter_02/2_17.py)
* [2_18 - CPU-bound code with a task](pc_async/chapter_02/2_18.py)
* [2_19 - Incorrectly using a blocking API in a coroutine](pc_async/chapter_02/2_19.py)
* [2_20 - Manually creating the event loop](pc_async/chapter_02/2_20.py)
* [2_21 - Accessing the event loop](pc_async/chapter_02/2_21.py)
* [2_22 - Running CPU-bound code in debug mode](pc_async/chapter_02/2_22.py)
* [2_23 - Changing the slow callback duration](pc_async/chapter_02/2_23.py)
### Work in progress ...