diff options
Diffstat (limited to 'src/tape.zig')
| -rw-r--r-- | src/tape.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tape.zig b/src/tape.zig index 9dca5ee8..2875b156 100644 --- a/src/tape.zig +++ b/src/tape.zig @@ -1148,6 +1148,12 @@ pub fn poison(why: []const u8) void { }; } +/// A replica's replay came to another state than the authority's (`why`): +/// it joins again. +pub fn diverged(why: []const u8) void { + if (on) |t| if (t.replay) t.diverge("{s}", .{why}); +} + /// A replica's speculation leaves what is the authority's be (a terminal's /// emulator, a kind's state): true, and the input waits for its order. pub fn authorityOnly(comptime why: []const u8) bool { |
