flask-executor icon indicating copy to clipboard operation
flask-executor copied to clipboard

public vs private interface of FutureCollection

Open marksantcroos opened this issue 6 years ago • 2 comments

Hi,

Thanks for creating this module.

I've got a question about the FutureCollection object. I would like to have some inspection methods, which are currently private (_futures).

Is there a good reason not to expose the collection publicly so that I can iterate over them?

Regards,

Mark

marksantcroos avatar Oct 10 '19 12:10 marksantcroos

I'd also like to be able to inspect the _futures object, primarily to see if a key exists in it.

davidferguson avatar Nov 02 '19 21:11 davidferguson

FYI: I ended up not using this module, as I required more specific semantics, i.e. different queues for concurrent and exclusive tasks.

Feel free to either close this issue or to keep it open to collect an answer for future generations.

marksantcroos avatar Nov 04 '19 07:11 marksantcroos

I'll close this for now, but @davidferguson may be interested in #35

dchevell avatar Aug 19 '22 10:08 dchevell