import * as tsplus_module_1 from "@tsplus/stdlib/collections/Chunk/filter";
import { unsafeOfferAll } from "@effect/core/io/Hub/operations/_internal/unsafeOfferAll";
import { unsafePollAllQueue } from "@effect/core/io/Hub/operations/_internal/unsafePollAllQueue";
/**
 * Unsafely removes the specified item from a queue.
 */

export function unsafeRemove(queue, a) {
  unsafeOfferAll(queue, tsplus_module_1.filter_(unsafePollAllQueue(queue), _ => _ !== a));
}
//# sourceMappingURL=unsafeRemove.mjs.map