Is there a way in which we can create long living threads? #678
Labels
enhancement
New feature or request
good-first-issue
Good for newcomers
never-stale
Issues/PRs that are not stale
My request may sound strange, but bare with me, currently piscina is designed for worker threads is more functional stateless approach and this may work for 90% use cases, but my use case requires me to hold a instance of class on a thread and keep it long running. The reason for this is cause i hold iterator on the worker thread side and exchange bulk messages for iteration between it and main thread.. can this be done via piscina?
What i am doing is opening sqlite DBs queries on worker threads in iterator mode and doing a k-way merge on main thread.. and i dont want to keep reopening these queries.. any suggestions?
The text was updated successfully, but these errors were encountered: