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

Function poll

packages/effect/src/internal/stm/tQueue.ts:297–298  ·  view source on GitHub ↗
(self: TQueue.TDequeue<A>)

Source from the content-addressed store, hash-verified

295
296/** @internal */
297export const poll = <A>(self: TQueue.TDequeue<A>): STM.STM<Option.Option<A>> =>
298 pipe(self.takeUpTo(1), core.map(RA.head))
299
300/** @internal */
301export const seek = dual<

Callers

nothing calls this directly

Calls 3

takeUpToMethod · 0.65
mapMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected