Skip to content

Instantly share code, notes, and snippets.

@danielkec

danielkec/ma6.java

Created Mar 20, 2020
Embed
What would you like to do?
// Create a message
Message<String> message = Message.of("payload!", () -> {
System.out.println("Executed when acked!");
return CompletableFuture.completedFuture(null);
});
// Acknowledge
message.ack();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment