import * as tsplus_module_1 from "@effect/core/stm/TRef/operations/unsafeGet";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/effect";
import { concreteTHub } from "@effect/core/stm/THub/operations/_internal/InternalTHub";
/**
 * Checks whether the hub is shut down.
 *
 * @tsplus getter ets/THub isShutdown
 */

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