Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ isEmpty
Function
isEmpty
packages/effect/src/TxPriorityQueue.ts:223–223 ·
view source on GitHub ↗
(self: TxPriorityQueue<A>)
Source
from the content-addressed store, hash-verified
221
* @since 2.0.0
222
*/
223
export
const
isEmpty = <A>(self: TxPriorityQueue<A>): Effect.Effect<boolean> => Effect.map(size(self), (n) => n === 0)
224
225
/**
226
* Returns `true`
if
the queue has at least one element.
Callers
nothing calls this directly
Calls
2
size
Function · 0.70
map
Method · 0.45
Tested by
no test coverage detected