New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Flush #374
Labels
Comments
The json method will always send a response, but the script will still keep running until it calls stop. So you can just add a filter |
Yes, but what if I have a long task to do (Like video editing) then I don’t want the user to wait the whole time until his video is done editing.
Thanks
… Am 16.07.2018 um 08:46 schrieb Mike Cao ***@***.***>:
The json method will always send a response, but the script will still keep running until it calls stop. So you can just add a filter Flight::before('stop', ...) to run some code before the script exits.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#374 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AS78wtqxhs5SIfytYQRGJ5K2ChNbAj_7ks5uHDbCgaJpZM4VGy_3>.
|
See: #413 It seems that you CAN accomplish non-buffering in a route |
Seems addressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
is it possible to use the Flight::json() function with flushing?
So I can call Flight::json() then the user gets a response but the script still runs after sending the data.
I tried normal flushing of content without Flight::json but that does not seem to work when using this framework 😬
The text was updated successfully, but these errors were encountered: