@effect/io
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -16,3 +16,2 @@ "use strict"; | ||
var Scheduler = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/internal/scheduler")); | ||
var SingleShotGen = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/io/internal/singleShotGen")); | ||
var Chunk = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/data/Chunk")); | ||
@@ -84,5 +83,2 @@ var Context = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fp-ts/data/Context")); | ||
return fresh; | ||
}, | ||
[Symbol.iterator]() { | ||
return new SingleShotGen.SingleShotGen(this); | ||
} | ||
@@ -89,0 +85,0 @@ }; |
@@ -279,11 +279,11 @@ "use strict"; | ||
const live = data => { | ||
return layer.scoped(Tag)(effect.gen(function* () { | ||
const live = yield* core.service(Live.Tag); | ||
const annotations = yield* core.service(Annotations.Tag); | ||
const clockState = yield* core.sync(() => ref.unsafeMake(data)); | ||
const warningState = yield* circular.makeSynchronized(WarningData.start); | ||
const suspendedWarningState = yield* circular.makeSynchronized(SuspendedWarningData.start); | ||
return layer.scoped(Tag)(effect.gen(function* ($) { | ||
const live = yield* $(core.service(Live.Tag)); | ||
const annotations = yield* $(core.service(Annotations.Tag)); | ||
const clockState = yield* $(core.sync(() => ref.unsafeMake(data))); | ||
const warningState = yield* $(circular.makeSynchronized(WarningData.start)); | ||
const suspendedWarningState = yield* $(circular.makeSynchronized(SuspendedWarningData.start)); | ||
const testClock = new TestClockImpl(clockState, live, annotations, warningState, suspendedWarningState); | ||
yield* fiberRuntime.withClockScoped(testClock); | ||
yield* fiberRuntime.addFinalizer(() => core.zipRight(testClock.suspendedWarningDone())(testClock.warningDone())); | ||
yield* $(fiberRuntime.withClockScoped(testClock)); | ||
yield* $(fiberRuntime.addFinalizer(() => core.zipRight(testClock.suspendedWarningDone())(testClock.warningDone()))); | ||
return testClock; | ||
@@ -290,0 +290,0 @@ })); |
{ | ||
"name": "@effect/io", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3974047
66182