MCPcopy Index your code
hub / github.com/Effect-TS/effect / poll

Function poll

packages/experimental/src/PersistedQueue/Redis.ts:240–250  ·  view source on GitHub ↗
(size: number)

Source from the content-addressed store, hash-verified

238 )
239
240 const poll = (size: number) =>
241 Effect.promise(() =>
242 redis.take(
243 queueKey,
244 pendingKey,
245 prefix,
246 workerId,
247 size,
248 lockExpirationMillis
249 )
250 )
251
252 yield* Effect.gen(function*() {
253 while (true) {

Callers 1

Redis.tsFile · 0.70

Calls 1

takeMethod · 0.65

Tested by

no test coverage detected