This is the central question:
The SimpleQueue
management is just an example of why an Uplink program might want to have its own thread created in advance of calling anvil.server.wait_forever()
.
I haven’t found an example of creating such a thread in advance. That might be because
- I haven’t looked hard enough, or
- there’s a really good reason not to do it, or
- it’s too trivially good/bad an idea to even discuss.
But given my complete lack of experience with threads, particularly in Anvil, I really don’t know which, at this point.
My “pre-created thread” idea is still at the design stage. It’ll progress to a test-bed if it looks promising.