effect-io-ai

Package: effect
Module: TQueue

TQueue.take

Takes the oldest value in the queue. If the queue is empty, this will return a computation that resumes when an item has been added to the queue.

Signature

declare const take: <A>(self: TDequeue<A>) => STM.STM<A>

Source

Since v2.0.0