We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5575954 commit 977f0adCopy full SHA for 977f0ad
v3/docs/TUTORIAL.md
@@ -1108,14 +1108,14 @@ async def foo(tsf): # Periodically set the ThreadSafeFlag
1108
await asyncio.sleep(1)
1109
tsf.set()
1110
1111
- def ready(tsf, poller):
1112
- r = (tsf, POLLIN)
1113
- poller.register(*r)
+def ready(tsf, poller):
+ r = (tsf, POLLIN)
+ poller.register(*r)
1114
1115
- def is_rdy():
1116
- return r in poller.ipoll(0)
+ def is_rdy():
+ return r in poller.ipoll(0)
1117
1118
- return is_rdy
+ return is_rdy
1119
1120
async def test():
1121
tsf = asyncio.ThreadSafeFlag()
0 commit comments