Package: effect
Module: Queue
Type guard to check if a value is an Enqueue.
When to use
Use to narrow an unknown value before calling queue operations that require write-side access.
Gotchas
A full Queue also satisfies this guard because every queue includes the
enqueue side.
See
isQueue for checking for a full read-write queue handleisDequeue for checking for the read side of a queueasEnqueue for narrowing an existing Queue to its write-only interfaceSignature
declare const isEnqueue: <A = unknown, E = unknown>(u: unknown) => u is Enqueue<A, E>
Since v2.0.0