// ets_tracing: off import { managedUse_ as use_ } from "../Effect/excl-forEach.js" import type * as T from "./deps.js" import type { Managed } from "./managed.js" /** * Run an effect while acquiring the resource before and releasing it after * * @ets_data_first use_ */ export function use(f: (a: A) => T.Effect, __trace?: string) { return (self: Managed): T.Effect => use_(self, f, __trace) } export { use_ }