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

Method filter

packages/effect/src/unstable/encoding/Sse.ts:621–623  ·  view source on GitHub ↗

* Separates SSE retry directives from regular event values. * * @since 4.0.0

(u: A)

Source from the content-addressed store, hash-verified

619 * @since 4.0.0
620 */
621 static filter<A>(u: A): Result.Result<Retry, Exclude<A, Retry>> {
622 return Retry.is(u) ? Result.succeed(u) : Result.fail(u as any)
623 }
624}
625
626/**

Callers 15

vitest.config.tsFile · 0.80
Codegen.tsFile · 0.80
assertionTargetFunction · 0.80
parseOpenApiFunction · 0.80
normalizeSseEventSchemaFunction · 0.80
formatWarningFunction · 0.80
uniqueDiagnosticsFunction · 0.80
normalizeSeeTargetFunction · 0.80
addFunction · 0.80
resolveSymbolFunction · 0.80
moduleSeeTagsFunction · 0.80

Calls 3

isMethod · 0.65
succeedMethod · 0.45
failMethod · 0.45

Tested by 12

execMethod · 0.64
startWatchFunction · 0.64
parseTerrainFunction · 0.64
toFramesFunction · 0.64
toRawFramesFunction · 0.64
filterLogsFunction · 0.64
roundtripFunction · 0.64
fFunction · 0.64
ownedCountFunction · 0.64
makeFailoverStorageFunction · 0.64