mikebaum / RxUI

A toolkit for reactive (event/stream) based UI development on the JVM
Apache License 2.0
0 stars 0 forks source link

Add the capability to set remote property values via a RemoteProperty #55

Closed mikebaum closed 8 years ago

mikebaum commented 8 years ago

Currently the RemoteProperty class offers no "setter". This issue tracks the work to add mechanisms to set remote property values. My initial thoughts are to add at least five methods:

    public void setValue(T value); // blocking

    public  CompletableFuture<Void> setValueAsync(T value); // non-blocking

    public boolean isLocked(); // checks if the remote property is locked

    public void lock(); // blocks until lock acquired without timeout

    public void unlock(); // unlock

There may eventually be a need to add methods like, compareAndSet(expected, newValue) or tryLock() (with or without timeout) and/or lock(timeout)

mikebaum commented 8 years ago

Closed since work has continued on this issue in another repository, see TigerUI Issue 1.