lockFiberWhile

fun <T> lockFiberWhile(aFiber: A_Fiber, supplier: () -> T): T

Lock the specified fiber for the duration of evaluation of the provided Supplier. Answer the result produced by the supplier.

Return

The value produced by the supplier.

Parameters

aFiber

The fiber to lock.

supplier

What to execute while the fiber is locked

T

The type of value that the supplier will return.