import * as tsplus_module_1 from "@effect/core/stm/THub/operations/TDequeue/takeBetween";
/**
 * 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 fluent ets/THub/TDequeue takeN
 */

export function takeN_(self, n) {
  return tsplus_module_1.takeBetween_(self, n, n);
}
/**
 * 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 ets/THub/TDequeue/Aspects takeN
 */

export const takeN = n => self => takeN_(self, n);
//# sourceMappingURL=takeN.mjs.map