class documentation

class StatReloader(BaseReloader):

View In Hierarchy

Undocumented

Class Method check​_availability Undocumented
Constant SLEEP​_TIME Undocumented
Method snapshot​_files Undocumented
Method tick No summary

Inherited from BaseReloader:

Method __init__ Undocumented
Method notify​_file​_changed Undocumented
Method run Undocumented
Method run​_loop Undocumented
Method stop Undocumented
Method wait​_for​_apps​_ready No summary
Method watch​_dir Undocumented
Method watched​_files Yield all files that need to be watched, including module files and files within globs.
Instance Variable ​_stop​_condition Undocumented
Instance Variable directory​_globs Undocumented
Instance Variable extra​_files Undocumented
Property should​_stop Undocumented
@classmethod
def check_availability(cls):
SLEEP_TIME: int =

Undocumented

Value
1
def snapshot_files(self):

Undocumented

def tick(self):
This generator is called in a loop from run_loop. It's important that the method takes care of pausing or otherwise waiting for a period of time. This split between run_loop() and tick() is to improve the testability of the reloader implementations by decoupling the work they do from the loop.