Skip to content

Commit 977f0ad

Browse files
committed
Tutorial: Fix indentation error in ThreadSafe flag example.
1 parent 5575954 commit 977f0ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

v3/docs/TUTORIAL.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,14 +1108,14 @@ async def foo(tsf): # Periodically set the ThreadSafeFlag
11081108
await asyncio.sleep(1)
11091109
tsf.set()
11101110

1111-
def ready(tsf, poller):
1112-
r = (tsf, POLLIN)
1113-
poller.register(*r)
1111+
def ready(tsf, poller):
1112+
r = (tsf, POLLIN)
1113+
poller.register(*r)
11141114

1115-
def is_rdy():
1116-
return r in poller.ipoll(0)
1115+
def is_rdy():
1116+
return r in poller.ipoll(0)
11171117

1118-
return is_rdy
1118+
return is_rdy
11191119

11201120
async def test():
11211121
tsf = asyncio.ThreadSafeFlag()

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