Yea true. Its still async though so yes, concurrency works fine. Its returning a subclassed asyncio.Future object. If you really need create_task, you can still use it
async def run_workflow():
result = await workflow.run()
return result
task = asyncio.create_task(run_workflow)
But that seems a little redudnant, its already async π
To your second question,
workflow.stream_events()
is deprecated, if you need to handle multiple users, you should use
handler.stream_events()
-- this way, each
workflow.run()
is independant