Hyperlinkv0.8.0-beta.28

Queue

Queue.isQueueconsteffect/Queue.ts:45
<A = unknown, E = unknown>(u: unknown): u is Queue<A, E>

Type guard to check if a value is a Queue.

When to use

Use to narrow an unknown value to a full Queue before passing it to APIs that need both offering and taking capabilities.

Source effect/Queue.ts:453 lines
export const isQueue = <A = unknown, E = unknown>(
  u: unknown
): u is Queue<A, E> => hasProperty(u, TypeId)