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
It would be useful to let the user define a timeout value when using the decorator @execute.python().
Eg:
importtimedefsleep_and_return(seconds):
time.sleep(seconds)
returnsecondsfunc=execute.python(timeout=0.5)(sleep_and_return) # <== adding a new "timeout" parameterresult=func(10) # <== It would be nice to raise after 0.5 seconds.
The text was updated successfully, but these errors were encountered:
It would be useful to let the user define a timeout value when using the decorator
@execute.python()
.Eg:
The text was updated successfully, but these errors were encountered: