You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say I got a function that at-most is allowed to run for 15 seconds (but hopefully doesn't take that long and is only a precaution), I know how to stop the function after 15 seconds, but I'd like to also be able to stop it if the user decides to stop cancel their request (e.g. they hit the stop button in a browser or they do CTRL + C on cURL).
From what I've seen, there was a hackish workaround using streaming, but there doesn't appear to be a way to do this cleanly.
Has this since changed or is this still the case? If it is still the case, is there plans to add a way to do this (kinda like how the request context works in Golang)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Let's say I got a function that at-most is allowed to run for 15 seconds (but hopefully doesn't take that long and is only a precaution), I know how to stop the function after 15 seconds, but I'd like to also be able to stop it if the user decides to stop cancel their request (e.g. they hit the stop button in a browser or they do CTRL + C on cURL).
From what I've seen, there was a hackish workaround using streaming, but there doesn't appear to be a way to do this cleanly.
Has this since changed or is this still the case? If it is still the case, is there plans to add a way to do this (kinda like how the request context works in Golang)?
Beta Was this translation helpful? Give feedback.
All reactions