Skip to content

Commit

Permalink
Update global-concurrency-limits.mdx - Remove await for task submis…
Browse files Browse the repository at this point in the history
…sions (#15581)

Co-authored-by: nate nowack <[email protected]>
  • Loading branch information
biancaines and zzstoatzz authored Oct 4, 2024
1 parent 94515a1 commit f8bcb64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/3.0/develop/global-concurrency-limits.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ async def process_data(x, y):


@flow
async def my_flow():
def my_flow():
for x, y in [(1, 2), (2, 3), (3, 4), (4, 5)]:
await process_data.submit(x, y)
process_data.submit(x, y)


if __name__ == "__main__":
Expand Down Expand Up @@ -229,9 +229,9 @@ async def make_http_request():


@flow
async def my_flow():
def my_flow():
for _ in range(10):
await make_http_request.submit()
make_http_request.submit()


if __name__ == "__main__":
Expand Down

0 comments on commit f8bcb64

Please sign in to comment.