howmanysmall / Janitor

Janitor library.
https://howmanysmall.github.io/Janitor/
MIT License
107 stars 17 forks source link

Cleanup cleanups that make cleanups #1

Closed ok-nick closed 3 years ago

ok-nick commented 3 years ago

During cleanup, the Maid class will keep iterating throughout all tasks until they are all cleaned up. This takes care of cases where a cleanup function will create another cleanup. Imo, there really shouldn't be cleanup functions making cleanup functions in the first place, but it's a feature to consider.

howmanysmall commented 3 years ago

...this hurts my brain to read, I'll take a look tomorrow when i'm not confused as hell