apply

abstract suspend fun apply(value: T): ProcessingParameterResult

Apply

Attempts to update the MimiProcessingParameter with the given value by updating all registered, out-of-date MimiParameterApplicator instances.

All updates to the MimiParameterApplicators must succeed for the apply operation to succeed and the MimiProcessingParameter.value to be updated.

If there are no registered MimiParameterApplicators, then the update will always succeed.

The operation will "fail fast" when encountering an error; it will not attempt to apply the update to the remaining MimiParameterApplicators.

Return

A ProcessingParameterResult indicating either the ProcessingParameterResult.Success or ProcessingParameterResult.Failure of the operation.

Parameters

value

The intended new value of the MimiProcessingParameter