java.lang.Object
com.machinezoo.hookless.ReactiveScope
Thread-local context for reactive computations that collects reactive dependencies.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
block()
boolean
blocked()
static ReactiveScope
current()
com.machinezoo.closeablescope.CloseableScope
enter()
<T> T
freezes()
void
freezes
(ReactiveFreezes freezes) static com.machinezoo.closeablescope.CloseableScope
ignore()
static com.machinezoo.closeablescope.CloseableScope
<T> T
pins()
void
pins
(ReactivePins pins) toString()
versions()
void
watch
(ReactiveVariable<?> variable) void
watch
(ReactiveVariable<?> variable, long version)
-
Constructor Details
-
ReactiveScope
public ReactiveScope()
-
-
Method Details
-
current
-
enter
public com.machinezoo.closeablescope.CloseableScope enter() -
ignore
public static com.machinezoo.closeablescope.CloseableScope ignore() -
versions
-
watch
-
watch
-
blocked
public boolean blocked() -
block
public void block() -
nonblocking
public static com.machinezoo.closeablescope.CloseableScope nonblocking() -
freeze
-
freezes
-
freezes
-
pin
-
pins
-
pins
-
toString
-