The initial impetus came from building menu structures for set of menus I have that offer various ways at getting to files I'm working on, applications, etc... It uses quite few pathwatchers that build up some pretty complex menus based on file changes in various directories... if I update the menu structure every time a file changes, then everything in Hammerspoon slows down and if I just use the pathwatcher to set a flag indicating that the structure needs to be rebuilt the next time I click on the menu, then menu display becomes slow...
Thus the idea of keeping the structure consistent in a background thread so it's always current but doesn't block other things going on.
I probably have enough now that I could tackle that particular problem, but the module has kind of become interesting (to me at least) in its own right... just how much *can* be made "safe" in the background? I'd never want this in core, since there are so many main-thread only/single-thread only/thread-safe/thread-unsafe questions that the OS X docs don't cover nearly as well as they probably should...
I posted it here in case anyone else wants to take a look or has an interest; this doesn't really belong in the Hammerspoon wiki.