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.
Peter Hinch 3e738dae85 EVENTS.md: Clarify introductory text. 23 hours ago
v2 apoll.py Minor doc fix 12 months ago
v3 EVENTS.md: Clarify introductory text. 23 hours ago
.gitignore Initial commit 6 years ago
LICENSE Initial commit 6 years ago
README.md Move V2 resources to v2 directory. 2 years ago
aswitch.py aswitch.py: fix bug where Delay_ms spawned needless coros. 3 years ago
asyn.py Update primitives for new uasyncio version. README provides introduction. 3 years ago

README.md

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.