execute

fun <T> execute(ownerPlugin: Any, operation: () -> T): CompletableFuture<T>(source)

Queues a short state update or read from another Velocity callback onto the UI owner thread. Perform database and network work before this call; operation must not block or wait on another UI request.