ProducerProxy

public class ProducerProxy<Update, Success> : BaseProducer<Update, Success>

ProducerProxy acts like a producer but is actually a proxy for some operation, e.g. setting and oberving property

  • Calls update handler instead of sending specified Update to the Producer

    Declaration

    Swift

    override public func tryUpdate(_ update: Update, from originalExecutor: Executor?) -> Bool
  • Calls update handler instead of sending specified Complete to the Producer

    Declaration

    Swift

    override public func tryComplete(_ completion: Fallible<Success>, from originalExecutor: Executor? = nil) -> Bool