Interface AwaitingEventExecutor<E>

Type Parameters:
E - event type
All Superinterfaces:
EventHandler<E>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AwaitingEventExecutor<E> extends EventHandler<E>
An event handler that returns an EventTask to await on.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    execute(E event)
    This method is not supported for AwaitingEventExecutor and will throw an exception if invoked.
    @Nullable EventTask
    executeAsync(E event)
    Executes the event handler asynchronously.