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

Function ops

packages/effect/test/Channel.test.ts:31–31  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

29 Effect.gen(function*() {
30 const stream = Stream.fromChannel(channel)
31 const ops = (n: number) => countOps(stream.pipe(Stream.take(n), Stream.runDrain))
32 const small = yield* ops(1_000)
33 const large = yield* ops(2_000)
34 assert.isBelow(large / small, 2.5)

Callers 1

Channel.test.tsFile · 0.85

Calls 3

countOpsFunction · 0.70
pipeMethod · 0.65
takeMethod · 0.65

Tested by

no test coverage detected