Skip to content

Commit b460c9f

Browse files
committed
Update concurrency.py
1 parent 762b283 commit b460c9f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/async_examples/concurrency.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ async def sorter(arr):
4040
arr[j] = arr[j + 1]
4141
arr[j + 1] = temp
4242
print(f"result: {arr}")
43-
return arr
43+
return arr
44+
45+
46+
async def task():
47+
time.sleep(1)
48+
return "done"

0 commit comments

Comments
 (0)