UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

13 lines (12 loc) 443 B
import * as H from "../../../../Hub/index.mjs"; import * as Ensuring from "./ensuring.mjs"; import * as FromChunkHub from "./fromChunkHub.mjs"; /** * Creates a stream from a subscription to a hub. * * The hub will be shut down once the stream is closed. */ export function fromChunkHubWithShutdown(hub) { return Ensuring.ensuring_(FromChunkHub.fromChunkHub(hub), H.shutdown(hub)); } //# sourceMappingURL=fromChunkHubWithShutdown.mjs.map