Skip to content

Commit e5b823a

Browse files
committed
example: sleep first
1 parent 633ce7e commit e5b823a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/line_echo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
async def pling(line):
99
while True:
10+
await trio.sleep(1)
1011
line.value = 1
1112
await trio.sleep(1)
1213
line.value = 0
13-
await trio.sleep(1)
1414

1515

1616
async def main():

0 commit comments

Comments
 (0)