class documentation
class AsyncStateOfflineManager: (source)
Constructor: AsyncStateOfflineManager(offline_path)
Class that handles archiving and restoring of supplied active states.
After you have called the restore_state() method, you have to call the clear_restored_state() method, so that the state files are deleted.
The reason for splitting it into two methods is that something might go wrong in your application, at least in the early stages and then the data would be gone forever (sometimes safety is better in foresight than hindsight).
| Method | __init__ |
The class constructor. |
| Async Method | archive |
Archive supplied state(s). |
| Async Method | clear |
Remove archived state(s) after the restore was successful. |
| Async Method | restore |
Restore previously archived state(s). |
| Instance Variable | offline |
Path where files are archived and restored. |