|
1 | 1 | # Asynchronous programming in MicroPython
|
2 | 2 |
|
3 | 3 | CPython supports asynchronous programming via the `asyncio` library.
|
4 |
| -MicroPython provides `uasyncio` which is a subset of this, optimised for small |
| 4 | +MicroPython provides `asyncio` which is a subset of this, optimised for small |
5 | 5 | code size and high performance on bare metal targets. This repository provides
|
6 | 6 | documentation, tutorial material and code to aid in its effective use.
|
7 | 7 |
|
8 |
| -# uasyncio version 3 |
| 8 | +# asyncio version 3 |
9 | 9 |
|
10 |
| -Damien has completely rewritten `uasyncio` which was released as V3.0. See |
11 |
| -[PR5332](https://github.com/micropython/micropython/pull/5332). This is now |
12 |
| -incorporated in release build V1.13 and subsequent daily builds. |
| 10 | +Damien has completely rewritten `asyncio` which was released as V3.0. This is |
| 11 | +incorporated in all recent firmware builds. The resources in this repo may be found in the |
| 12 | +`v3` directory. These include a tutorial, synchronisation primitives, drivers, |
| 13 | +applications and demos. |
13 | 14 |
|
14 |
| -Resources for V3 may be found in the `v3` directory. These include a guide to |
15 |
| -porting applications from V2, an updated tutorial, synchronisation primitives |
16 |
| -and various applications and demos. |
| 15 | +# Concurrency |
17 | 16 |
|
18 |
| -V2 should now be regarded as obsolete for almost all applications with the |
19 |
| -possible exception mentioned below. |
| 17 | +Other documents provide hints on asynchronous programming techniques including |
| 18 | +threading and multi-core coding. |
20 | 19 |
|
21 | 20 | ### [Go to V3 docs](./v3/README.md)
|
22 | 21 |
|
23 | 22 | # uasyncio version 2
|
24 | 23 |
|
25 |
| -The official version 2 is entirely superseded by V3, which improves on it in |
26 |
| -every respect. |
27 |
| - |
28 |
| -I produced a modified `fast_io` variant of V2 which is in use for some |
29 |
| -specialist purposes. It enables I/O to be scheduled at high priority. Currently |
30 |
| -this schedules I/O significantly faster than V3; the maintainers plan to |
31 |
| -improve `uasyncio` I/O scheduling. When this is complete I intend to delete all |
32 |
| -V2 material. |
33 |
| - |
34 |
| -All V2 resources are in the V2 subdirectory: [see this README](./v2/README.md). |
| 24 | +This is obsolete: code and docs have been removed. |
0 commit comments