Skip to content

Commit

Permalink
Replace Hold with Guard in the demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasMikula committed Apr 23, 2014
1 parent cb7508f commit b493427
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import javafx.beans.property.SimpleBooleanProperty;
import javafx.beans.value.ObservableBooleanValue;

import org.reactfx.Hold;
import org.reactfx.Guard;
import org.reactfx.inhibeans.binding.BooleanBinding;

public class AndGateDemo {
Expand Down Expand Up @@ -63,10 +63,10 @@ static class AndGateImpl implements AndGate {

@Override
public void setInputs(boolean a, boolean b) {
Hold hold = output.block();
Guard guard = output.block();
this.a.set(a);
this.b.set(b);
hold.close();
guard.close();
}

@Override public ObservableBooleanValue a() { return a; }
Expand Down

0 comments on commit b493427

Please sign in to comment.