MimiProcessingParameterApplicator

public final class MimiProcessingParameterApplicator<Value> : Identifiable where Value : Equatable, Value : Sendable
extension MimiProcessingParameterApplicator: Equatable

Object that subscribes to a MimiProcessingParameter and allows for parameter values to be applied and propagated to remote data sources.

  • id

    Identifier of the applicator.

    Declaration

    Swift

    public let id: String
  • The value that was last known to have been successfully applied on the applicator.

    Note

    This will be nil if no successful application has taken place.
    Declaration

    Swift

    public private(set) var latestAppliedValue: Value? { get }
  • Create a new MimiProcessingParameterApplicator instance.

    Declaration

    Swift

    public init(currentValue: Value? = nil,
                applyTimeout: Double? = nil,
                apply: @escaping @Sendable (Value) async throws -> Void)