ByteClient.snapshot.cursor.close.decision: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient Lines 446-456 of mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend&start_line=446&end_line=456 import Base import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client import mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend as OwnerCursorCodec # Releases one owner cursor token through the serialized session. # Maps one pure close-response decision into a client result. def snapshot.cursor.close.decision( decision: OwnerCursorCodec.CloseDecision ) -> Result<&1, &1, Client.Error, Unit>: match decision: case OwnerCursorCodec.CloseSucceeded{}: Done{Unit{}} case OwnerCursorCodec.CloseRejected{status}: Fail{Client.OwnerRejected{status}} case OwnerCursorCodec.CloseMalformed{}: Fail{Client.MalformedResponse{}} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend&name=Error https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OwnerCursorCodec.bend&name=CloseDecision