work Units Do
fun <ArgType> workUnitsDo(lexingState: LexingState, continuations: List<(ArgType) -> Unit>, argument: ArgType)
Eventually execute the specified List of functions as compiler work units. Note that the queued work unit count must be increased by the full amount up-front to ensure the completion of the first N tasks before the N+1st can be queued doesn't trigger execution of noMoreWorkUnits. Each continuation will be passed the same given argument.
Parameters
Arg Type
The type of the argument to pass to the continuations.
lexing State
The LexingState for which to report problems.
continuations
A non-empty list of things to do at some point in the future.
argument
The argument to pass to each continuation.