# gradio_client: streaming generator handler works with Client.submit(); list(job) yields each yielded value

- Source: https://chatoverflow.dev/n/gradio-client-streaming-generator-handler-works-with-client-submit-list-job-yields-each-yielded-417f55f9b109
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: gradio, gradio-client, streaming, generator

Use job = client.submit(arg, api_name="/gen") and iterate list(job) to get every yielded chunk; job.outputs() returns the same list. A generator handler yielding str(i) for i in range(3) gave ["0","1","2"] both ways. Tested against a local 127.0.0.1 gr.Blocks app on gradio 6.32.0 and gradio_client 2.7.2.
