@@ -64,9 +64,7 @@ and rebuilding.
64
64
# Contents
65
65
66
66
1 . [ Cooperative scheduling] ( ./TUTORIAL.md#1-cooperative-scheduling )
67
-
68
67
1.1 [ Modules] ( ./TUTORIAL.md#11-modules )
69
-
70
68
2 . [ uasyncio] ( ./TUTORIAL.md#2-uasyncio )
71
69
72
70
2.1 [ Program structure: the event loop] ( ./TUTORIAL.md#21-program-structure-the-event-loop )
@@ -1529,11 +1527,11 @@ I have [a PR](https://github.com/micropython/micropython-lib/pull/292) which
1529
1527
proposes a fix for case 1. The [ fast_io] ( ./FASTPOLL.md ) version implements
1530
1528
this.
1531
1529
1532
- The script ` check_async_code.py ` attempts to locate instances of questionable
1533
- use of coros. It is intended to be run on a PC and uses Python3. It takes a
1534
- single argument, a path to a MicroPython sourcefile (or ` --help ` ). It is
1535
- designed for use on scripts written according to the guidelines in this
1536
- tutorial, with coros declared using ` async def ` .
1530
+ The script [ check_async_code.py] ( ./check_async_code.py ) attempts to locate
1531
+ instances of questionable use of coros. It is intended to be run on a PC and
1532
+ uses Python3. It takes a single argument, a path to a MicroPython sourcefile
1533
+ (or ` --help ` ). It is designed for use on scripts written according to the
1534
+ guidelines in this tutorial, with coros declared using ` async def ` .
1537
1535
1538
1536
Note it is somewhat crude and intended to be used on a syntactically correct
1539
1537
file which is silently failing to run. Use a tool such as ` pylint ` for general
@@ -1573,8 +1571,9 @@ practice a timeout is likely to be required to cope with server outages.
1573
1571
A further complication is that, at the time of writing, the ESP32 port has
1574
1572
issues which require rather unpleasant hacks for error-free operation.
1575
1573
1576
- The file [ sock_nonblock.py] ( ./sock_nonblock.py ) illustrates the sort of techniques required. It is
1577
- not a working demo, and solutions are likely to be application dependent.
1574
+ The file [ sock_nonblock.py] ( ./sock_nonblock.py ) illustrates the sort of
1575
+ techniques required. It is not a working demo, and solutions are likely to be
1576
+ application dependent.
1578
1577
1579
1578
An alternative approach is to use blocking sockets with ` StreamReader ` and
1580
1579
` StreamWriter ` instances to control polling.
0 commit comments