Files
hatchet/examples/python/streaming/async_stream.py
Gabe Ruttner 8e80faf2d6 Fe overhaul docs (#1640)
* api changes

* doc changes

* move docs

* generated

* generate

* pkg

* backmerge main

* revert to main

* revert main

* race?

* remove go tests
2025-04-30 14:10:09 -07:00

20 lines
334 B
Python

import asyncio
from examples.streaming.worker import streaming_workflow
async def main() -> None:
ref = await streaming_workflow.aio_run_no_wait()
await asyncio.sleep(1)
stream = ref.stream()
async for chunk in stream:
print(chunk)
if __name__ == "__main__":
import asyncio
asyncio.run(main())