@effect/stm
Advanced tools
Comparing version 0.20.0 to 0.21.0
@@ -73,5 +73,3 @@ "use strict"; | ||
exports.withPermitScoped = withPermitScoped; | ||
const withPermitsScoped = /*#__PURE__*/(0, _Function.dual)(2, (self, permits) => Effect.acquireRelease(core.commit(acquireN(self, permits)), () => core.commit(releaseN(self, permits)), { | ||
interruptible: true | ||
})); | ||
const withPermitsScoped = /*#__PURE__*/(0, _Function.dual)(2, (self, permits) => Effect.acquireReleaseInterruptible(core.commit(acquireN(self, permits)), () => core.commit(releaseN(self, permits)))); | ||
/** @internal */ | ||
@@ -78,0 +76,0 @@ exports.withPermitsScoped = withPermitsScoped; |
{ | ||
"name": "@effect/stm", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"license": "MIT", | ||
@@ -10,4 +10,4 @@ "repository": { | ||
"dependencies": { | ||
"@effect/data": "^0.17.0", | ||
"@effect/io": "^0.36.0" | ||
"@effect/data": "^0.17.1", | ||
"@effect/io": "^0.37.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "publishConfig": { |
@@ -105,6 +105,5 @@ import { dual } from "@effect/data/Function" | ||
>(2, (self, permits) => | ||
Effect.acquireRelease( | ||
Effect.acquireReleaseInterruptible( | ||
core.commit(acquireN(self, permits)), | ||
() => core.commit(releaseN(self, permits)), | ||
{ interruptible: true } | ||
() => core.commit(releaseN(self, permits)) | ||
)) | ||
@@ -111,0 +110,0 @@ |
@@ -117,5 +117,2 @@ /** | ||
} | ||
interface TracedEither<E, A> extends STM<never, E, A> { | ||
readonly _tag: "Traced" | ||
} | ||
} | ||
@@ -131,8 +128,5 @@ | ||
} | ||
interface Some<A> extends STM<never, never, A> { | ||
interface Some<A> extends STM<never, Cause.NoSuchElementException, A> { | ||
readonly _tag: "Some" | ||
} | ||
interface TracedOption<A> extends STM<never, Cause.NoSuchElementException, A> { | ||
readonly _tag: "Traced" | ||
} | ||
} | ||
@@ -139,0 +133,0 @@ |
@@ -106,5 +106,2 @@ import type * as Context from "@effect/data/Context"; | ||
} | ||
interface TracedEither<E, A> extends STM<never, E, A> { | ||
readonly _tag: "Traced"; | ||
} | ||
} | ||
@@ -119,8 +116,5 @@ /** | ||
} | ||
interface Some<A> extends STM<never, never, A> { | ||
interface Some<A> extends STM<never, Cause.NoSuchElementException, A> { | ||
readonly _tag: "Some"; | ||
} | ||
interface TracedOption<A> extends STM<never, Cause.NoSuchElementException, A> { | ||
readonly _tag: "Traced"; | ||
} | ||
} | ||
@@ -127,0 +121,0 @@ /** |
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
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
1591810
28031
+ Added@effect/io@0.37.1(transitive)
- Removed@effect/io@0.36.1(transitive)
Updated@effect/data@^0.17.1
Updated@effect/io@^0.37.0