
com.freya02.botcommands.api.waiter.CompletedFutureEvent Maven / Gradle / Ivy
package com.freya02.botcommands.api.waiter;
import net.dv8tion.jda.api.events.GenericEvent;
import java.util.concurrent.Future;
/**
* Just a TriConsumer for {@link EventWaiterBuilder#setOnComplete(CompletedFutureEvent)}, accepts a {@link Future} and the provided event or an exception.
*
You will either receive the event object or a Throwable
*
* @param The JDA event waited for
*/
public interface CompletedFutureEvent {
void accept(Future future, T e, Throwable t);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy