whenRunningInterpretersDo

fun whenRunningInterpretersDo(priority: Int, action: () -> Unit)

Request that the specified action be executed when interpreter tasks are allowed to run. If there are any postponed safe-point tasks, that means we're either in or waiting for a safe-point to be reached, so don't start another interpreter task – queue it instead.

Parameters

priority

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

action

The action to perform when interpreters may run.