-
Notifications
You must be signed in to change notification settings - Fork 649
Description
Is your feature request related to a problem? Please describe.
Hi,
I'm using Python concurrent.future threads ... in Pycharm.
I have a save/load project function for my program ... no GUI.
I'm using the Pycharm square stop box to exit the program.
My Save function
I cannot safely write to disk, which threads are done/pending ...
because there is a possibility the save file will corrupt if I push
the square stop box while (example - thread 5) is saving.
My Load function
I have created a workaround by backing up the save file ...
and reloading it ... if the written file was corrupted on shutdown.
QUESTION
If we could include a feature into quit() or exit() ... that asks the user ...
"Was python closed?" (by Pycharm or some other IDE) ... then
if it was closed ... a final call is made to quit() ... to run some final code
the user has written.
is this possible?
Describe the solution you'd like
If we could include a feature into quit() or exit() ... that asks the user ...
"Was python closed?" (by Pycharm or some other IDE) ... then
if it was closed ... a final call is made to quit() ... to run some final code
the user has written.
Basic Example
No response
Describe alternatives you've considered
No response
Drawbacks and Impact
No response
Additional context
No response