/**
* Takes the specified number of elements from the queue. If there are fewer
* than the specified number of elements available, it retries until they
* become available.
*
* @tsplus static effect/core/stm/THub/TDequeue.Aspects takeN
* @tsplus pipeable effect/core/stm/THub/TDequeue takeN
*/
export function takeN(n: number) {
return (self: THub.TDequeue): STM> => self.takeBetween(n, n)
}