| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /proc/self/root/home/livedhms/lmgt/node_modules/effect/dist/esm/ |
| Current File : //proc/self/root/home/livedhms/lmgt/node_modules/effect/dist/esm/TestSized.js |
/**
* @since 2.0.0
*/
import * as Context from "./Context.js";
import * as core from "./internal/core.js";
/**
* @since 2.0.0
*/
export const TestSizedTypeId = /*#__PURE__*/Symbol.for("effect/TestSized");
/**
* @since 2.0.0
*/
export const TestSized = /*#__PURE__*/Context.GenericTag("effect/TestSized");
/** @internal */
class SizedImpl {
fiberRef;
[TestSizedTypeId] = TestSizedTypeId;
constructor(fiberRef) {
this.fiberRef = fiberRef;
}
get size() {
return core.fiberRefGet(this.fiberRef);
}
withSize(size) {
return effect => core.fiberRefLocally(this.fiberRef, size)(effect);
}
}
/**
* @since 2.0.0
*/
export const make = size => new SizedImpl(core.fiberRefUnsafeMake(size));
/**
* @since 2.0.0
*/
export const fromFiberRef = fiberRef => new SizedImpl(fiberRef);
//# sourceMappingURL=TestSized.js.map