Skip to content

Commit

Permalink
Adding documentation for async-log
Browse files Browse the repository at this point in the history
Autocommit Wed Jan 14 15:10:05 EST 2015
  • Loading branch information
mxro committed Jan 14, 2015
1 parent ce5f34f commit 04a2ee6
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,22 @@ public class SynchronizedPropertyNode implements PropertyNode {

@Override
public <R> Promise<R> record(final PropertyOperation<R> op) {
accessThread.offer(new Step() {

return promiseFactory.promise(new Operation<R>() {

@Override
public void process() {
decorated.record(op);
public void apply(final ValueCallback<R> callback) {
accessThread.offer(new Step() {

@Override
public void process() {
decorated.record(op);
}
});
accessThread.startIfRequired();
}
});
this.accessThread.startIfRequired();

}

public SynchronizedPropertyNode(final PropertyNode decorated, final AccessThread accessThread,
Expand Down

0 comments on commit 04a2ee6

Please sign in to comment.