Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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 */
297
export
const
poll = <A>(self: TQueue.TDequeue<A>): STM.STM<Option.Option<A>> =>
298
pipe(self.takeUpTo(1), core.map(RA.head))
299
300
/** @internal */
301
export
const
seek = dual<
Callers
nothing calls this directly
Calls
3
takeUpTo
Method · 0.65
map
Method · 0.65
pipe
Function · 0.50
Tested by
no test coverage detected