joker-eph wrote: What is the use-case? I'm a bit puzzled: if you can manage the lifetime of the context, then you can bundle it with your thread pool interface. https://github.com/llvm/llvm-project/pull/236543