import * as tsplus_module_1 from "@effect/core/stream/Channel/operations/environment";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/flatMap";
/**
 * Accesses the environment of the channel in the context of a channel.
 *
 * @tsplus static ets/Channel/Ops environmentWithChannel
 */

export function environmentWithChannel(f) {
  return tsplus_module_2.flatMap_(tsplus_module_1.environment(), f);
}
//# sourceMappingURL=environmentWithChannel.mjs.map