Skip to content

Commit ef8be12

Browse files
committed
TUTORIAL.md Add note to retaining state section 7.2
1 parent 088d390 commit ef8be12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v3/docs/TUTORIAL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2222,7 +2222,6 @@ scheduler is running.
22222222
If a `uasyncio` application terminates, state is retained. Embedded code seldom
22232223
terminates, but in testing it is useful to re-run a script without the need for
22242224
a soft reset. This may be done as follows:
2225-
22262225
```python
22272226
import uasyncio as asyncio
22282227

@@ -2237,6 +2236,8 @@ def test():
22372236
finally:
22382237
asyncio.new_event_loop() # Clear retained state
22392238
```
2239+
It should be noted that clearing retained state is not a panacea. Re-running
2240+
complex applications may require state to be retained.
22402241

22412242
###### [Contents](./TUTORIAL.md#contents)
22422243

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy