This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
Store.watch
~import std/store.watchKoru Standard Library: Reactive Stores — the `watch` event.
store.watch.kz · 1 tors
Koru Standard Library: Reactive Stores — the `watch` event.
Joined via `~part watch` in store.kz; merged into the store module at load.
STORE.WATCH — subscriptions; bodies are transplanted by the coordinator
By the time this transform fires for a well-formed program, create has
already spliced this watch's branches into the write-subflow — the site
self-erases. Firing with the store's create still untransformed means the
watch precedes its create in source (a rung-one ordering wall); no create
anywhere is a plain unknown-store diagnostic.
// Koru Standard Library: Reactive Stores — the `watch` event.
// Joined via `~part watch` in store.kz; merged into the store module at load.
//
// STORE.WATCH — subscriptions; bodies are transplanted by the coordinator
//
// By the time this transform fires for a well-formed program, create has
// already spliced this watch's branches into the write-subflow — the site
// self-erases. Firing with the store's create still untransformed means the
// watch precedes its create in source (a rung-one ordering wall); no create
// anywhere is a plain unknown-store diagnostic.
~[keyword|comptime|transform] pub tor watch {
expr: Expression,
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
reporter: std/compiler:*ErrorReporter,
allocator: std.mem.Allocator
} -> SiteResult