WriteableProperty

public class WriteableProperty<TypeSpec> : Property<TypeSpec> where TypeSpec : PropertyTypeSpec

A property that can be set. Writes happen asynchronously.

  • The value of the property. Reading is instant and synchronous, but writing is asynchronous and the value will not be updated until the write is complete. Use set to retrieve a promise.

    Declaration

    Swift

    public override var value: PropertyType { get set }
  • Sets the value of the property.

    Throws

    PropertyError (via Promise)

    Declaration

    Swift

    public func set(_ newValue: NonOptionalType) -> Promise<PropertyType>

    Return Value

    A promise that resolves to the new actual value of the property, once set.