Unofficial mirror of micropython-async
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
peterhinch ee3f7ddccd Add note re PR11604.
1 week ago
v2 Minor doc fix 2 years ago
v3 Add note re PR11604. 1 week ago
.gitignore Initial commit 7 years ago
LICENSE Initial commit 7 years ago Move V2 resources to v2 directory. 3 years ago fix bug where Delay_ms spawned needless coros. 4 years ago Update primitives for new uasyncio version. README provides introduction. 4 years ago

Asynchronous programming in MicroPython

CPython supports asynchronous programming via the asyncio library. MicroPython provides uasyncio which is a subset of this, optimised for small code size and high performance on bare metal targets. This repository provides documentation, tutorial material and code to aid in its effective use.

uasyncio version 3

Damien has completely rewritten uasyncio which was released as V3.0. See PR5332. This is now incorporated in release build V1.13 and subsequent daily builds.

Resources for V3 may be found in the v3 directory. These include a guide to porting applications from V2, an updated tutorial, synchronisation primitives and various applications and demos.

V2 should now be regarded as obsolete for almost all applications with the possible exception mentioned below.

Go to V3 docs

uasyncio version 2

The official version 2 is entirely superseded by V3, which improves on it in every respect.

I produced a modified fast_io variant of V2 which is in use for some specialist purposes. It enables I/O to be scheduled at high priority. Currently this schedules I/O significantly faster than V3; the maintainers plan to improve uasyncio I/O scheduling. When this is complete I intend to delete all V2 material.

All V2 resources are in the V2 subdirectory: see this README.