execute

abstract fun <T> execute(player: Player, operation: () -> T): T(source)

Enters an already-owned player's UI context without scheduling work or granting native region ownership.