2
2
3
3
This GitHub repository consists of the following parts:
4
4
* [ A tutorial] ( ./TUTORIAL.md ) An introductory tutorial on asynchronous
5
- programming and the use of the uasyncio library is offered .
5
+ programming and the use of the uasyncio library (asyncio subset) .
6
6
* [ Asynchronous device drivers] ( ./DRIVERS.md ) . A module providing drivers for
7
7
devices such as switches and pushbuttons.
8
8
* [ Synchronisation primitives] ( ./PRIMITIVES.md ) . Provides commonly used
@@ -38,10 +38,6 @@ Version 2.0 brings only one API change over V1.7.1, namely the arguments to
38
38
code samples use default args so will work under either version. The priority
39
39
version requires the later version and firmware.
40
40
41
- [ Paul Sokolovsky's library] ( https://github.com/pfalcon/micropython-lib ) has the
42
- latest ` uasyncio ` code. At the time of writing (Feb 27th 2018) the version in
43
- [ micropython-lib] ( https://github.com/micropython/micropython-lib ) is 1.7.1.
44
-
45
41
See [ tutorial] ( ./TUTORIAL.md#installing-uasyncio-on-bare-metal ) for
46
42
installation instructions.
47
43
@@ -69,8 +65,7 @@ It supports millisecond level timing with the following:
69
65
* Event loop method ` call_later_ms `
70
66
* uasyncio ` sleep_ms(time) `
71
67
72
- As of ` uasyncio.core ` V1.7.1 (7th Jan 2018) it supports coroutine timeouts and
73
- cancellation.
68
+ ` uasyncio ` V2 supports coroutine timeouts and cancellation.
74
69
75
70
* ` wait_for(coro, t_secs) ` runs ` coro ` with a timeout.
76
71
* ` cancel(coro) ` tags ` coro ` for cancellation when it is next scheduled.
@@ -79,8 +74,8 @@ Classes `Task` and `Future` are not supported.
79
74
80
75
## 3.1 Asynchronous I/O
81
76
82
- Asynchronous I/O works with devices whose drivers support streaming, such as
83
- UARTs.
77
+ Asynchronous I/O ( ` StreamReader ` and ` StreamWriter ` classes) support devices
78
+ with streaming drivers, such as UARTs and sockets .
84
79
85
80
## 3.2 Time values
86
81
0 commit comments