whenSafePointDo

fun whenSafePointDo(priority: Int, safeAction: () -> Unit)

Request that the specified action be executed at the next safe-point. No interpreter tasks are running at a safe-point.

Parameters

priority

The priority of the AvailTask to queue. It must be in the range 0..255.

safeAction

The action to execute at the next safe-point.