// ets_tracing: off import type { Exit } from "../Exit/index.js" import type { Scope } from "../Scope/index.js" import { descriptorWith } from "./core.js" import type { Effect } from "./effect.js" /** * Passes the fiber's scope to the specified function, which creates an effect * that will be returned from this method. */ export function scopeWith( f: (scope: Scope>) => Effect, __trace?: string ): Effect { return descriptorWith((d) => f(d.scope), __trace) }