-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major
-
None
-
Affects Version/s: None
-
Component/s: C++
-
None
Right now the BackgroundGenerator (async_generator.h) can deadlock if the user does not transfer onto a new thread task. It's also typically a good idea to keep the background generator iterating the input as fast as possible.
If the background generator could create a promise that required callbacks to run on a new thread it would prevent callers from having to remember to do so.