Skip to content

Commit b493427

Browse files
committed
Replace Hold with Guard in the demo.
1 parent cb7508f commit b493427

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reactfx-demos/src/main/java/org/reactfx/inhibeans/demo/AndGateDemo.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import javafx.beans.property.SimpleBooleanProperty;
77
import javafx.beans.value.ObservableBooleanValue;
88

9-
import org.reactfx.Hold;
9+
import org.reactfx.Guard;
1010
import org.reactfx.inhibeans.binding.BooleanBinding;
1111

1212
public class AndGateDemo {
@@ -63,10 +63,10 @@ static class AndGateImpl implements AndGate {
6363

6464
@Override
6565
public void setInputs(boolean a, boolean b) {
66-
Hold hold = output.block();
66+
Guard guard = output.block();
6767
this.a.set(a);
6868
this.b.set(b);
69-
hold.close();
69+
guard.close();
7070
}
7171

7272
@Override public ObservableBooleanValue a() { return a; }

0 commit comments

Comments
 (0)