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

Function held

packages/cluster/test/Sharding.test.ts:1582–1582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1580 const sharding = Context.get(context, Sharding.Sharding)
1581 const shardIds = Array.makeBy(8, (i) => ShardIdModule.make("default", i + 1))
1582 const held = () => shardIds.filter((shardId) => sharding.hasShardId(shardId)).length
1583
1584 yield* waitFor(() => held() === 8)
1585 assert.strictEqual(held(), 8)

Callers 1

Sharding.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected