GitHub user BaurzhanSakhariev added a comment to the discussion: Use single 
AsyncExecutor for all operations

Ok, problem was in closing OperatorOutputStream and Operator. 

My understanding is that freeing resources implicitly destroys executor and it 
had to be re-created.

I guess what I need is having single Operator (with single AsyncExecutor) 
throughout the app lifecycle and close it only in the end.

The only problem is that keeping Operaot open is acceptable as long as I close 
it on shutdown but keeping OperatorStreams is not okay. Currently I have to 
keep both open to not "destroy" predefined executor. 

Is it possible to close stream and keep pre-defined single AsyncExecutor alive?

GitHub link: 
https://github.com/apache/opendal/discussions/5096#discussioncomment-10542450

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to