import * as tsplus_module_1 from "@effect/core/io/Scope/definition";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/serviceWithEffect";
/**
 * Accesses the current scope and uses it to perform the specified effect.
 *
 * @tsplus static ets/Effect/Ops scopeWith
 */

export function scopeWith(f, __tsplusTrace) {
  return tsplus_module_2.serviceWithEffect(tsplus_module_1.Scope.Tag, f, __tsplusTrace);
}
//# sourceMappingURL=scopeWith.mjs.map