Class ReadScope
java.lang.Object
privbot.context.ReadScope
Reuses detached observations within one synchronous decision, never across decisions or threads.
Open the scope inside the client-thread callback, using
ctx.read(...). Do not dispatch
actions or wait for changes inside a scope: confirmation reads must start a fresh scope.-
Method Summary
-
Method Details
-
scope
Runsworkwith a fresh observation cache, cleared when it returns. Nested calls join the outer scope instead of opening a new one. Call it on the thread that reads (normally inside a client-thread callback); the cache is thread-local. -
once
-