/** * Lazily constructs a layer from the specified value. * * @tsplus static effect/core/io/Layer.Ops sync */ export function sync(tag: Tag): (resource: LazyArg) => Layer { return (resource) => Layer.fromEffectEnvironment(Effect.sync(Env(tag, resource()))) }