Package: effect
Module: Queue
Converts a Queue to its write-only Enqueue interface.
When to use
Use to expose only the producer side of a Queue to code that should offer
values or signal queue lifecycle.
Gotchas
This is a type-level capability restriction. It returns the same queue object, so it does not hide read operations at runtime.
See
asDequeue for exposing only the read side of a QueueEnqueue for the write-only queue handle returned by this conversionSignature
declare const asEnqueue: <A, E>(self: Queue<A, E>) => Enqueue<A, E>
Since v4.0.0