def fin

ezmcp@0.1.0.0 · src/sse.bend:92

import ezmcp@0.1.0.0/src/sse.bend as Sse
import Base

92# the data the stream ends with: an unfinished event's, else the last one's
93def fin(text: Sse) -> String:
94  match text:
95    case Sse{cur, last}:
96      Maybe.default(&2, String, cur, last)

Uses (3)

Used by (1)