Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Vert.x execute blocking task on virtual threads

Run blocking tasks on a virtual thread instead of a platform thread.

Examples

// Assuming you are on a vertx thread
Future<String> fut = ExecuteBlocking.executeBlocking(() -> {
  Thread.sleep(1000);
  return "Hello";
});
fut.onComplete(onSuccess(s -> {
  System.out.println(s);
}));

You can view all examples.