MCPcopy Create free account
hub / github.com/Effect-TS/effect / show

Function show

packages/effect/test/ui/StreamQuery.test.ts:23–33  ·  view source on GitHub ↗
(result: Seen, patched = false)

Source from the content-addressed store, hash-verified

21 flush.pipe(Effect.andThen(TestClock.adjust(duration)), Effect.andThen(flush))
22
23const show = (result: Seen, patched = false): string =>
24 (AsyncResult.isSuccess(result)
25 ? result.value.title
26 : AsyncResult.isFailure(result)
27 ? "Failure(" +
28 Option.getOrElse(Cause.findErrorOption(result.cause), () => "?") +
29 ")" +
30 (Option.isSome(result.previousSuccess) ? " previous" : "")
31 : "Initial") +
32 (result.waiting ? " waiting" : "") +
33 (patched ? " patched" : "")
34
35interface NoteStream {
36 readonly id: string

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected