Description
In LuceneNet(C#) we had a long conversation about adding support for Async API issue but the scope of the project was not allowed because it's a port project 馃槖. Lucene currently has the TaskExecutor (previously named SliceExecutor) which is responsible for offloading tasks to the executor, wait for them all to complete and return the corresponding results, this is one of the examples but adding VirtualThreads(JDK21) helps to achieve concurrency (IO bound operations).
Description
In LuceneNet(
C#) we had a long conversation about adding support for Async API issue but the scope of the project was not allowed because it's a port project 馃槖. Lucene currently has theTaskExecutor(previously namedSliceExecutor) which is responsible for offloading tasks to the executor, wait for them all to complete and return the corresponding results, this is one of the examples but adding VirtualThreads(JDK21) helps to achieve concurrency (IO bound operations).