Interface IvyAsyncExecutor


public interface IvyAsyncExecutor
Runs asynchronous code in an Ivy context.
This allows the execution of code that runs against the Ivy API in any thread pool.
By default, the Ivy context active while the executor was created is used, but a custom context can be provided instead.

Sample:


 Callable<String> slowFunction = () -> {
 Thread.sleep(10_000);
 return "result";
 };
 CompletableFuture<String> result = IvyAsyncExecutor.create().call(slowFunction);
 

Since:
12.0.0
API:
This is a public API.