def read

bendvy-ecs-core@0.1.0.4 · inspector_failure_projection.bend:43

import bendvy-ecs-core@0.1.0.4/inspector_failure_projection.bend as InspectorFailureProjection
import Base
import bendvy-ecs-core@0.1.0.4/event_runtime.bend as Ev
import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A
import bendvy-ecs-core@0.1.0.4/relation_types.bend as G
import bendvy-ecs-core@0.1.0.4/inspector_stream_frame.bend as F

43# Return the runtime frame with a detached failure view. Preserve the Inspector
44# cursor and runtime reader positions; inspection does not drain retained notices.
45def read(~S:Data,~C:Type,~R:Type,~E:Data,relation:G.Descriptor<S>,frame:F.Frame<S,C,R,E>) -> F.Frame<S,C,R,E> & FailureView<S,E>:
46  match frame:
47    case F.Frame{runtime,cursor}:joined(~S,~C,~R,~E,relation,cursor,Ev.inspect(~S,~C,~R,~A.Notice<S,E>,runtime))

Uses (7)

Used by (1)