Updatable

public protocol Updatable : UpdatesController

A base protocol for objects that can be updated with Update values

  • Sends specified Update to the Updatable and returns true if succeded

    Declaration

    Swift

    func tryUpdate(_ update: Update, from originalExecutor: Executor?) -> Bool

    Parameters

    update

    value to update with

    originalExecutor

    Executor you calling this method on. Specifying this argument will allow to perform syncronous executions on strictAsync: false Executors. Use default value or nil if you are not sure about an Executor you calling this method on.

  • update(_:) Extension method

    Sends specified Update to the Updatable

    Declaration

    Swift

    func update(_ update: Update)

    Parameters

    update

    value to update with

  • update(_:from:) Extension method

    Sends specified Update to the Updatable

    Declaration

    Swift

    func update(_ update: Update, from originalExecutor: Executor?)

    Parameters

    update

    value to update with

    originalExecutor

    Executor you calling this method on. Specifying this argument will allow to perform syncronous executions on strictAsync: false Executors. Use default value or nil if you are not sure about an Executor you calling this method on.