Skip to content

Instantly share code, notes, and snippets.

@teivah
Created May 30, 2018 13:28
Show Gist options
  • Save teivah/664c98185b6e280a2c1ccf98c6a76c4d to your computer and use it in GitHub Desktop.
Save teivah/664c98185b6e280a2c1ccf98c6a76c4d to your computer and use it in GitHub Desktop.
vertx.executeBlocking(future -> {
byte[] bytes = parseLargeFile(filename);
// Complete the future with the generated objects in the
// blocking method
future.complete(bytes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment