Ensure @gradio/client's submit iterator releases as expected (#8715)

* close the iterator when the prediction stream completes

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
pngwn 2024-07-11 12:01:08 +01:00 committed by GitHub
parent 740364e5ce
commit a6b3c6ce4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
"@gradio/client": patch
"gradio": patch
---
fix:Ensure `@gradio/client`'s `submit` iterator releases as expected

View File

@ -684,6 +684,8 @@ export function submit(
endpoint: _endpoint,
fn_index
});
close();
}
}