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
How to catch exceptions from sub threads and stop the main thread? Does anyone have an idea?
As you can see the following demo, how can we prevent the last line of code from not executing?
frombroadcast_serviceimportbroadcast_service@broadcast_service.on_listen("test")defhandle_rec():
raiseException("This is a error")
broadcast_service.publish("test")
print("Here can not be work.")
The text was updated successfully, but these errors were encountered:
How to catch exceptions from sub threads and stop the main thread? Does anyone have an idea?
As you can see the following demo, how can we prevent the last line of code from not executing?
The text was updated successfully, but these errors were encountered: