rerun comments
@@ -74,12 +74,16 @@ def reload_and_rerun_on_module_changes(module: types.ModuleType, session_id):
# actually go away. Once a listener is added it is persistent until
# the cache is cleared.
-# TODO: Provide a parameter deregister_all_other_listeners, or something
-# similar, that defaults to True. When autoreload is called, the first
-# thing that is done is it is determined whether or not observers
-# are currently running on this session_id that have not been provided
-# to the current function. If that's the case, those observers are
-# stopped.
+# TODO: Make it so that instead of creating an observer for every
+# session_id, instead, if a file is already being observed, just append
+# the new session_id to the rerun trigger.
+
+# TODO: Provide a way to automatically deregister the listeners in the
+# case where the autoreload function is no longer being called, or
+# some modules are no longer being provided to autoreload function
+
+# TODO: Also need to deregister the reload observer when a session is
+# closed.
def autoreload(modules):
