setFiberContinuationsTrackingWork

fun setFiberContinuationsTrackingWork(    fiber: A_Fiber,     onSuccess: (AvailObject) -> Unit,     onFailure: (Throwable) -> Unit)

Set up the given fiber to eventually invoke either the onSuccess or the onFailure continuation, but not both. However, immediately record the fact that we're expecting one of these to be eventually invoked, and wrap the continuations with code that will invoke getNoMoreWorkUnits when the number of outstanding tasks reaches zero.

Parameters

fiber

The A_Fiber to set up.

onSuccess

The continuation to invoke in the event of a successful completion of the fiber.

onFailure

The continuation to invoke in the event that the fiber raises a Throwable during its execution.