submit

abstract fun submit(): CompletableFuture<T>(source)

Returns a CompletableFuture which is completed when the event waiter receives an event of the specified type, and all preconditions have passed.

Return

The CompletableFuture of this event waiter, can be canceled