import * as tsplus_module_1 from "@effect/core/stm/TRef/operations/unsafeGet";
import * as tsplus_module_2 from "@tsplus/stdlib/structure/Equals";
import * as tsplus_module_3 from "@effect/core/stm/STM/operations/effect";
import { concreteTQueue } from "@effect/core/stm/TQueue/operations/_internal/InternalTQueue";
/**
 * Checks whether the queue is shut down.
 *
 * @tsplus getter ets/TQueue isShutdown
 */

export function isShutdown(self) {
  void 0;
  return tsplus_module_3.effect(journal => {
    const queue = tsplus_module_1.unsafeGet_(self.ref, journal);
    return tsplus_module_2.equals(queue, null);
  });
}
//# sourceMappingURL=isShutdown.mjs.map