execute

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

Queues short state updates or session operations on the owner thread. Complete blocking work before calling this method.