import * as tsplus_module_1 from "@effect/core/stm/TQueue/operations/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/TQueue 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/TQueue/Aspects takeN
 */

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