Closed Oozlum closed 3 years ago
What is the correct (recommended) way to achieve this?
cqueues.running()
However a better pattern is that your code snippets just look like linear code: if they need to create their own threads they can create their own cqueues controller.
Great, thank you. Meta question: how did you add the 'question' label? I tried to do it when I created this issue, but couldn't see an option?
What I am trying to achieve is to load a user-defined script as a wrapped function, and for that script to be able to use queues itself transparently (i.e. without introducing additional framework into the script's environment):
The issue is what is
controller
? The way I see it, the script either has be able to do something like:or:
What is the correct (recommended) way to achieve this?