SuspensionHelper

constructor(toSucceed: (A) -> Unit, toFail: (A_BasicObject) -> Unit)

Construct a SuspensionHelper.

Parameters

toSucceed

The function to call that accepts a value from the Primitive if the Primitive is successful.

toFail

The function to call that accepts an A_BasicObject that provides the reason for the Primitive failure.