Kevin Grismore
07/31/2022, 5:07 PMwait_for
the other tasks, they are still visualized as happening concurrently, which makes the visual less fun.Kevin Grismore
07/31/2022, 5:10 PM@task
async def do_something_async():
#do async stuff
@task
def do_something_sync():
#do sync stuff
@flow
async def sync_async_mix():
await do_something_async()
do_something_sync(wait_for=[do_something_sync])
my flow will crash, so this definitely isn't the way to goKevin Grismore
07/31/2022, 5:10 PMKevin Grismore
07/31/2022, 5:18 PMAnna Geller
Anna Geller
@task
async def do_something_async():
#do async stuff
@task
def do_something_sync():
#do sync stuff
@flow
async def sync_async_mix():
xxx = await do_something_async()
do_something_sync(wait_for=[xxx])