This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 9/16/2026.
Store.stored
~import std/store.storedKoru Standard Library: Reactive Stores — the `stored` event.
store.stored.kz · 1 tors
Koru Standard Library: Reactive Stores — the `stored` event.
Joined via `~part stored` in store.kz; merged into the store module at load.
STORE.STORED — the sole write path: an ordinary call into the subflow
std/store:stored { game.entities: game.entities + 1 }
Rewritten into `__store_write_game(field: <idx>, value: <expr'>)` where
<expr'> has dotted store reads rewritten to the cell. The replacement is
a real flow, so it is emitted inside a function like any other call.
// Koru Standard Library: Reactive Stores — the `stored` event.
// Joined via `~part stored` in store.kz; merged into the store module at load.
//
// STORE.STORED — the sole write path: an ordinary call into the subflow
//
// std/store:stored { game.entities: game.entities + 1 }
//
// Rewritten into `__store_write_game(field: <idx>, value: <expr'>)` where
// <expr'> has dotted store reads rewritten to the cell. The replacement is
// a real flow, so it is emitted inside a function like any other call.
~[keyword|comptime|transform] pub tor stored {
source: Source,
invocation: *const Invocation,
item: std/compiler:*const Item,
program: std/compiler:*const Program,
reporter: std/compiler:*ErrorReporter,
allocator: std.mem.Allocator
} -> SiteResult