eu.lucaventuri.fibry.MessageWithAnswer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fibry Show documentation
Show all versions of fibry Show documentation
The first Java Actor System supporting fibers from Project Loom
package eu.lucaventuri.fibry;
import java.util.concurrent.CompletableFuture;
/** Message that is supposed to get an answer at some point */
public class MessageWithAnswer {
public final T message;
public final CompletableFuture answer = new CompletableFuture<>();
public MessageWithAnswer(T message) {
this.message = message;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy