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

Function ownedCount

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

Source from the content-addressed store, hash-verified

1326 const sharding = yield* Sharding.Sharding
1327 const allShards = Array.makeBy(shardsPerGroup, (i) => ShardIdModule.make("default", i + 1))
1328 const ownedCount = () => allShards.filter((shardId) => sharding.hasShardId(shardId)).length
1329
1330 while (ownedCount() === 0) {
1331 yield* TestClock.adjust(10)

Callers 1

Sharding.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected