effect 2.4.12 → 2.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BigInt.js +75 -3
- package/dist/cjs/BigInt.js.map +1 -1
- package/dist/cjs/Duration.js +31 -19
- package/dist/cjs/Duration.js.map +1 -1
- package/dist/cjs/Number.js +1 -1
- package/dist/cjs/Request.js.map +1 -1
- package/dist/cjs/internal/fiberRuntime.js +17 -3
- package/dist/cjs/internal/fiberRuntime.js.map +1 -1
- package/dist/cjs/internal/query.js +14 -14
- package/dist/cjs/internal/query.js.map +1 -1
- package/dist/cjs/internal/request.js +1 -0
- package/dist/cjs/internal/request.js.map +1 -1
- package/dist/cjs/internal/version.js +1 -1
- package/dist/dts/BigInt.d.ts +57 -2
- package/dist/dts/BigInt.d.ts.map +1 -1
- package/dist/dts/Duration.d.ts +8 -0
- package/dist/dts/Duration.d.ts.map +1 -1
- package/dist/dts/Number.d.ts +1 -1
- package/dist/dts/Request.d.ts +1 -0
- package/dist/dts/Request.d.ts.map +1 -1
- package/dist/esm/BigInt.js +72 -2
- package/dist/esm/BigInt.js.map +1 -1
- package/dist/esm/Duration.js +30 -18
- package/dist/esm/Duration.js.map +1 -1
- package/dist/esm/Number.js +1 -1
- package/dist/esm/Request.js.map +1 -1
- package/dist/esm/internal/fiberRuntime.js +17 -3
- package/dist/esm/internal/fiberRuntime.js.map +1 -1
- package/dist/esm/internal/query.js +14 -14
- package/dist/esm/internal/query.js.map +1 -1
- package/dist/esm/internal/request.js +1 -0
- package/dist/esm/internal/request.js.map +1 -1
- package/dist/esm/internal/version.js +1 -1
- package/package.json +1 -1
- package/src/BigInt.ts +77 -2
- package/src/Duration.ts +38 -18
- package/src/Number.ts +1 -1
- package/src/Request.ts +2 -1
- package/src/internal/fiberRuntime.ts +24 -4
- package/src/internal/query.ts +53 -50
- package/src/internal/request.ts +1 -0
- package/src/internal/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","names":["seconds","dual","globalValue","BlockedRequests","unsafeMakeWith","
|
|
1
|
+
{"version":3,"file":"query.js","names":["seconds","dual","globalValue","BlockedRequests","unsafeMakeWith","core","ensuring","Listeners","currentCache","Symbol","for","fiberRefUnsafeMake","map","deferredMake","handle","listeners","currentCacheEnabled","fromRequest","request","dataSource","flatMap","isEffect","succeed","ds","fiberIdWith","id","proxy","Proxy","fiberRefGetWith","cacheEnabled","cached","cache","getEither","orNew","_tag","left","interrupted","invalidateWhen","entry","increment","uninterruptibleMask","restore","exit","blocked","empty","deferredAwait","decrement","right","single","makeEntry","result","ownerId","state","completed","ref","sync","cacheRequest","unit","deferredComplete","withRequestCaching","self","strategy","fiberRefLocally","withRequestCache"],"sources":["../../../src/internal/query.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,OAAO,QAAQ,gBAAgB;AAExC,SAASC,IAAI,QAAQ,gBAAgB;AACrC,SAASC,WAAW,QAAQ,mBAAmB;AAG/C,OAAO,KAAKC,eAAe,MAAM,sBAAsB;AACvD,SAASC,cAAc,QAAQ,YAAY;AAC3C,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,SAAS,QAAQ,cAAc;AAOxC;AACA,OAAO,MAAMC,YAAY,gBAAGN,WAAW,eACrCO,MAAM,CAACC,GAAG,CAAC,8BAA8B,CAAC,EAC1C,MACEL,IAAI,CAACM,kBAAkB,CAAeP,cAAc,CAIlD,KAAK,EACL,MAAMC,IAAI,CAACO,GAAG,CAACP,IAAI,CAACQ,YAAY,EAAY,EAAGC,MAAM,KAAM;EAAEC,SAAS,EAAE,IAAIR,SAAS,EAAE;EAAEO;AAAM,CAAE,CAAC,CAAC,EACnG,MAAMd,OAAO,CAAC,EAAE,CAAC,CAClB,CAAC,CACL;AAED;AACA,OAAO,MAAMgB,mBAAmB,gBAAGd,WAAW,eAC5CO,MAAM,CAACC,GAAG,CAAC,qCAAq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,IAAI,CASN,CAAC;AACD;AACA,CAAC2D,IAAI,EAAE7B,KAAK,KAAK1B,IAAI,CAACyD,eAAe,CAACF,IAAI,EAAEpD,YAAY,EAAEuB,KAAK,CAAC,CACjE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","names":["dual","hasProperty","completedRequestMap","core","StructuralPrototype","RequestSymbolKey","RequestTypeId","Symbol","for","requestVariance","_E","_","_A","RequestPrototype","isRequest","u","of","args","Object","assign","create","tagged","tag","request","_tag","Class","prototype","TaggedClass","complete","self","result","fiberRefGetWith","currentRequestMap","map","sync","has","entry","get","state","completed","deferredUnsafeDone","completeEffect","effect","matchEffect","onFailure","error","exitFail","onSuccess","value","exitSucceed","fail","failCause","cause","exitFailCause","succeed","Listeners","count","observers","Set","addObserver","f","add","removeObserver","delete","increment","forEach","decrement","filterOutCompleted","requests","filter"],"sources":["../../../src/internal/request.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,IAAI,QAAQ,gBAAgB;AACrC,SAASC,WAAW,QAAQ,iBAAiB;AAG7C,OAAO,KAAKC,mBAAmB,MAAM,0BAA0B;AAC/D,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAASC,mBAAmB,QAAQ,iBAAiB;AAErD;AACA,MAAMC,gBAAgB,GAAG,gBAAgB;AAEzC;AACA,OAAO,MAAMC,aAAa,gBAA0BC,MAAM,CAACC,GAAG,CAC5DH,gBAAgB,CACQ;AAE1B,MAAMI,eAAe,GAAG;EACtB;EACAC,EAAE,EAAGC,CAAQ,IAAKA,CAAC;EACnB;EACAC,EAAE,EAAGD,CAAQ,IAAKA;CACnB;AAED,MAAME,gBAAgB,GAAG;EACvB,GAAGT,mBAAmB;EACtB,CAACE,aAAa,GAAGG;CAClB;AAED;AACA,OAAO,MAAMK,SAAS,GAAIC,CAAU,IAA6Cd,WAAW,CAACc,CAAC,EAAET,aAAa,CAAC;AAE9G;AACA,OAAO,MAAMU,EAAE,GAAGA,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CAAC;IAC/C;EACF;AACF,CAAC,CAAC,CACL,CAAC;AAEJ;AACA,OAAO,MAAMW,cAAc,gBAAGzC,IAAI,CAQhC,CAAC,EAAE,CAAC6B,IAAI,EAAEa,MAAM,KAChBvC,IAAI,CAACwC,WAAW,CAACD,MAAM,EAAE;EACvBE,SAAS,EAAGC,KAAK,IAAKjB,QAAQ,CAACC,IAAI,EAAE1B,IAAI,CAAC2C,QAAQ,CAACD,KAAK,CAAQ,CAAC;EACjEE,SAAS,EAAGC,KAAK,IAAKpB,QAAQ,CAACC,IAAI,EAAE1B,IAAI,CAAC8C,WAAW,CAACD,KAAK,CAAQ;CACpE,CAAC,CAAC;AAEL;AACA,OAAO,MAAME,IAAI,gBAAGlD,IAAI,CAQtB,CAAC,EAAE,CAAC6B,IAAI,EAAEgB,KAAK,KAAKjB,QAAQ,CAACC,IAAI,EAAE1B,IAAI,CAAC2C,QAAQ,CAACD,KAAK,CAAQ,CAAC,CAAC;AAElE;AACA,OAAO,MAAMM,SAAS,gBAAGnD,IAAI,CAQ3B,CAAC,EAAE,CAAC6B,IAAI,EAAEuB,KAAK,KAAKxB,QAAQ,CAACC,IAAI,EAAE1B,IAAI,CAACkD,aAAa,CAACD,KAAK,CAAQ,CAAC,CAAC;AAEvE;AACA,OAAO,MAAME,OAAO,gBAAGtD,IAAI,CAQzB,CAAC,EAAE,CAAC6B,IAAI,EAAEmB,KAAK,KAAKpB,QAAQ,CAACC,IAAI,EAAE1B,IAAI,CAAC8C,WAAW,CAACD,KAAK,CAAQ,CAAC,CAAC;AAErE;AACA,OAAM,MAAOO,SAAS;EACpBC,KAAK,GAAG,CAAC;EACTC,SAAS,GAAiC,IAAIC,GAAG,EAAE;EACnDC,WAAWA,CAACC,CAA0B;IACpC,IAAI,
|
|
1
|
+
{"version":3,"file":"request.js","names":["dual","hasProperty","completedRequestMap","core","StructuralPrototype","RequestSymbolKey","RequestTypeId","Symbol","for","requestVariance","_E","_","_A","RequestPrototype","isRequest","u","of","args","Object","assign","create","tagged","tag","request","_tag","Class","prototype","TaggedClass","complete","self","result","fiberRefGetWith","currentRequestMap","map","sync","has","entry","get","state","completed","deferredUnsafeDone","completeEffect","effect","matchEffect","onFailure","error","exitFail","onSuccess","value","exitSucceed","fail","failCause","cause","exitFailCause","succeed","Listeners","count","observers","Set","interrupted","addObserver","f","add","removeObserver","delete","increment","forEach","decrement","filterOutCompleted","requests","filter"],"sources":["../../../src/internal/request.ts"],"sourcesContent":[null],"mappings":"AAEA,SAASA,IAAI,QAAQ,gBAAgB;AACrC,SAASC,WAAW,QAAQ,iBAAiB;AAG7C,OAAO,KAAKC,mBAAmB,MAAM,0BAA0B;AAC/D,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,SAASC,mBAAmB,QAAQ,iBAAiB;AAErD;AACA,MAAMC,gBAAgB,GAAG,gBAAgB;AAEzC;AACA,OAAO,MAAMC,aAAa,gBAA0BC,MAAM,CAACC,GAAG,CAC5DH,gBAAgB,CACQ;AAE1B,MAAMI,eAAe,GAAG;EACtB;EACAC,EAAE,EAAGC,CAAQ,IAAKA,CAAC;EACnB;EACAC,EAAE,EAAGD,CAAQ,IAAKA;CACnB;AAED,MAAME,gBAAgB,GAAG;EACvB,GAAGT,mBAAmB;EACtB,CAACE,aAAa,GAAGG;CAClB;AAED;AACA,OAAO,MAAMK,SAAS,GAAIC,CAAU,IAA6Cd,WAAW,CAACc,CAAC,EAAET,aAAa,CAAC;AAE9G;AACA,OAAO,MAAMU,EAAE,GAAGA,CAAA,KAA4EC,IAAI,IAChGC,MAAM,CAACC,MAAM,CAACD,MAAM,CAACE,MAAM,CAACP,gBAAgB,CAAC,EAAEI,IAAI,CAAC;AAEtD;AACA,OAAO,MAAMI,MAAM,GACjBC,GAAc,IAEfL,IAAI,IAAI;EACP,MAAMM,OAAO,GAAGL,MAAM,CAACC,MAAM,CAACD,MAAM,CAACE,MAAM,CAACP,gBAAgB,CAAC,EAAEI,IAAI,CAAC;EACpEM,OAAO,CAACC,IA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ACL,KAAK,CAAC,CAAC;EAC9C;;AAGF;;;AAGA,OAAO,MAAMY,kBAAkB,GAAyCC,QAAkB,IACxFlE,IAAI,CAAC4B,eAAe,CAClB7B,mBAAmB,CAAC8B,iBAAiB,EACpCC,GAAG,IACF9B,IAAI,CAACmD,OAAO,CACVe,QAAQ,CAACC,MAAM,CAAE/C,OAAO,IAAK,EAAEU,GAAG,CAACI,GAAG,CAACd,OAAO,CAAC,EAAEe,KAAK,CAACC,SAAS,KAAK,IAAI,CAAC,CAAC,CAC5E,CACJ","ignoreList":[]}
|
package/package.json
CHANGED
package/src/BigInt.ts
CHANGED
|
@@ -547,10 +547,24 @@ export const multiplyAll = (collection: Iterable<bigint>): bigint => {
|
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
/**
|
|
550
|
-
*
|
|
550
|
+
* Takes a `bigint` and returns an `Option` of `number`.
|
|
551
|
+
*
|
|
552
|
+
* If the `bigint` is outside the safe integer range for JavaScript (`Number.MAX_SAFE_INTEGER`
|
|
553
|
+
* and `Number.MIN_SAFE_INTEGER`), it returns `Option.none()`. Otherwise, it converts the `bigint`
|
|
554
|
+
* to a number and returns `Option.some(number)`.
|
|
555
|
+
*
|
|
556
|
+
* @param b - The `bigint` to be converted to a `number`.
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* import { toNumber } from "effect/BigInt"
|
|
560
|
+
* import { Option } from "effect"
|
|
561
|
+
*
|
|
562
|
+
* assert.deepStrictEqual(toNumber(BigInt(42)), Option.some(42))
|
|
563
|
+
* assert.deepStrictEqual(toNumber(BigInt(Number.MAX_SAFE_INTEGER) + BigInt(1)), Option.none())
|
|
564
|
+
* assert.deepStrictEqual(toNumber(BigInt(Number.MIN_SAFE_INTEGER) - BigInt(1)), Option.none())
|
|
551
565
|
*
|
|
552
|
-
* @since 2.0.0
|
|
553
566
|
* @category conversions
|
|
567
|
+
* @since 2.0.0
|
|
554
568
|
*/
|
|
555
569
|
export const toNumber = (b: bigint): Option.Option<number> => {
|
|
556
570
|
if (b > BigInt(Number.MAX_SAFE_INTEGER) || b < BigInt(Number.MIN_SAFE_INTEGER)) {
|
|
@@ -558,3 +572,64 @@ export const toNumber = (b: bigint): Option.Option<number> => {
|
|
|
558
572
|
}
|
|
559
573
|
return Option.some(Number(b))
|
|
560
574
|
}
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Takes a string and returns an `Option` of `bigint`.
|
|
578
|
+
*
|
|
579
|
+
* If the string is empty or contains characters that cannot be converted into a `bigint`,
|
|
580
|
+
* it returns `Option.none()`, otherwise, it returns `Option.some(bigint)`.
|
|
581
|
+
*
|
|
582
|
+
* @param s - The string to be converted to a `bigint`.
|
|
583
|
+
*
|
|
584
|
+
* @example
|
|
585
|
+
* import { fromString } from "effect/BigInt"
|
|
586
|
+
* import { Option } from "effect"
|
|
587
|
+
*
|
|
588
|
+
* assert.deepStrictEqual(fromString("42"), Option.some(BigInt(42)))
|
|
589
|
+
* assert.deepStrictEqual(fromString(" "), Option.none())
|
|
590
|
+
* assert.deepStrictEqual(fromString("a"), Option.none())
|
|
591
|
+
*
|
|
592
|
+
* @category conversions
|
|
593
|
+
* @since 2.4.12
|
|
594
|
+
*/
|
|
595
|
+
export const fromString = (s: string): Option.Option<bigint> => {
|
|
596
|
+
try {
|
|
597
|
+
return s.trim() === ""
|
|
598
|
+
? Option.none()
|
|
599
|
+
: Option.some(BigInt(s))
|
|
600
|
+
} catch (_) {
|
|
601
|
+
return Option.none()
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Takes a number and returns an `Option` of `bigint`.
|
|
607
|
+
*
|
|
608
|
+
* If the number is outside the safe integer range for JavaScript (`Number.MAX_SAFE_INTEGER`
|
|
609
|
+
* and `Number.MIN_SAFE_INTEGER`), it returns `Option.none()`. Otherwise, it attempts to
|
|
610
|
+
* convert the number to a `bigint` and returns `Option.some(bigint)`.
|
|
611
|
+
*
|
|
612
|
+
* @param n - The number to be converted to a `bigint`.
|
|
613
|
+
*
|
|
614
|
+
* @example
|
|
615
|
+
* import { fromNumber } from "effect/BigInt"
|
|
616
|
+
* import { Option } from "effect"
|
|
617
|
+
*
|
|
618
|
+
* assert.deepStrictEqual(fromNumber(42), Option.some(BigInt(42)))
|
|
619
|
+
* assert.deepStrictEqual(fromNumber(Number.MAX_SAFE_INTEGER + 1), Option.none())
|
|
620
|
+
* assert.deepStrictEqual(fromNumber(Number.MIN_SAFE_INTEGER - 1), Option.none())
|
|
621
|
+
*
|
|
622
|
+
* @category conversions
|
|
623
|
+
* @since 2.4.12
|
|
624
|
+
*/
|
|
625
|
+
export const fromNumber = (n: number): Option.Option<bigint> => {
|
|
626
|
+
if (n > Number.MAX_SAFE_INTEGER || n < Number.MIN_SAFE_INTEGER) {
|
|
627
|
+
return Option.none()
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
try {
|
|
631
|
+
return Option.some(BigInt(n))
|
|
632
|
+
} catch (_) {
|
|
633
|
+
return Option.none()
|
|
634
|
+
}
|
|
635
|
+
}
|
package/src/Duration.ts
CHANGED
|
@@ -15,7 +15,11 @@ import { hasProperty, isBigInt, isNumber } from "./Predicate.js"
|
|
|
15
15
|
|
|
16
16
|
const TypeId: unique symbol = Symbol.for("effect/Duration")
|
|
17
17
|
|
|
18
|
+
const bigint0 = BigInt(0)
|
|
19
|
+
const bigint24 = BigInt(24)
|
|
20
|
+
const bigint60 = BigInt(60)
|
|
18
21
|
const bigint1e3 = BigInt(1_000)
|
|
22
|
+
const bigint1e6 = BigInt(1_000_000)
|
|
19
23
|
const bigint1e9 = BigInt(1_000_000_000)
|
|
20
24
|
|
|
21
25
|
/**
|
|
@@ -162,7 +166,7 @@ const DurationProto: Omit<Duration, "value"> = {
|
|
|
162
166
|
const make = (input: number | bigint): Duration => {
|
|
163
167
|
const duration = Object.create(DurationProto)
|
|
164
168
|
if (isNumber(input)) {
|
|
165
|
-
if (isNaN(input) || input
|
|
169
|
+
if (isNaN(input) || input <= 0) {
|
|
166
170
|
duration.value = zeroValue
|
|
167
171
|
} else if (!Number.isFinite(input)) {
|
|
168
172
|
duration.value = infinityValue
|
|
@@ -171,7 +175,7 @@ const make = (input: number | bigint): Duration => {
|
|
|
171
175
|
} else {
|
|
172
176
|
duration.value = { _tag: "Millis", millis: input }
|
|
173
177
|
}
|
|
174
|
-
} else if (input
|
|
178
|
+
} else if (input <= bigint0) {
|
|
175
179
|
duration.value = zeroValue
|
|
176
180
|
} else {
|
|
177
181
|
duration.value = { _tag: "Nanos", nanos: input }
|
|
@@ -522,6 +526,22 @@ export const times: {
|
|
|
522
526
|
})
|
|
523
527
|
)
|
|
524
528
|
|
|
529
|
+
/**
|
|
530
|
+
* @since 2.0.0
|
|
531
|
+
* @category math
|
|
532
|
+
*/
|
|
533
|
+
export const subtract: {
|
|
534
|
+
(that: DurationInput): (self: DurationInput) => Duration
|
|
535
|
+
(self: DurationInput, that: DurationInput): Duration
|
|
536
|
+
} = dual(
|
|
537
|
+
2,
|
|
538
|
+
(self: DurationInput, that: DurationInput): Duration =>
|
|
539
|
+
matchWith(self, that, {
|
|
540
|
+
onMillis: (self, that) => make(self - that),
|
|
541
|
+
onNanos: (self, that) => make(self - that)
|
|
542
|
+
})
|
|
543
|
+
)
|
|
544
|
+
|
|
525
545
|
/**
|
|
526
546
|
* @since 2.0.0
|
|
527
547
|
* @category math
|
|
@@ -631,32 +651,32 @@ export const format = (self: DurationInput): string => {
|
|
|
631
651
|
|
|
632
652
|
const nanos = unsafeToNanos(duration)
|
|
633
653
|
|
|
634
|
-
if (nanos %
|
|
635
|
-
parts.push(`${nanos %
|
|
654
|
+
if (nanos % bigint1e6) {
|
|
655
|
+
parts.push(`${nanos % bigint1e6}ns`)
|
|
636
656
|
}
|
|
637
657
|
|
|
638
|
-
const ms = nanos /
|
|
639
|
-
if (ms %
|
|
640
|
-
parts.push(`${ms %
|
|
658
|
+
const ms = nanos / bigint1e6
|
|
659
|
+
if (ms % bigint1e3 !== bigint0) {
|
|
660
|
+
parts.push(`${ms % bigint1e3}ms`)
|
|
641
661
|
}
|
|
642
662
|
|
|
643
|
-
const sec = ms /
|
|
644
|
-
if (sec %
|
|
645
|
-
parts.push(`${sec %
|
|
663
|
+
const sec = ms / bigint1e3
|
|
664
|
+
if (sec % bigint60 !== bigint0) {
|
|
665
|
+
parts.push(`${sec % bigint60}s`)
|
|
646
666
|
}
|
|
647
667
|
|
|
648
|
-
const min = sec /
|
|
649
|
-
if (min %
|
|
650
|
-
parts.push(`${min %
|
|
668
|
+
const min = sec / bigint60
|
|
669
|
+
if (min % bigint60 !== bigint0) {
|
|
670
|
+
parts.push(`${min % bigint60}m`)
|
|
651
671
|
}
|
|
652
672
|
|
|
653
|
-
const hr = min /
|
|
654
|
-
if (hr %
|
|
655
|
-
parts.push(`${hr %
|
|
673
|
+
const hr = min / bigint60
|
|
674
|
+
if (hr % bigint24 !== bigint0) {
|
|
675
|
+
parts.push(`${hr % bigint24}h`)
|
|
656
676
|
}
|
|
657
677
|
|
|
658
|
-
const days = hr /
|
|
659
|
-
if (days !==
|
|
678
|
+
const days = hr / bigint24
|
|
679
|
+
if (days !== bigint0) {
|
|
660
680
|
parts.push(`${days}d`)
|
|
661
681
|
}
|
|
662
682
|
|
package/src/Number.ts
CHANGED
|
@@ -400,7 +400,7 @@ export const sumAll = (collection: Iterable<number>): number => {
|
|
|
400
400
|
* @param collection - The collection of `number`s to multiply.
|
|
401
401
|
*
|
|
402
402
|
* @example
|
|
403
|
-
* import { multiplyAll } from
|
|
403
|
+
* import { multiplyAll } from "effect/Number"
|
|
404
404
|
*
|
|
405
405
|
* assert.deepStrictEqual(multiplyAll([2, 3, 4]), 24)
|
|
406
406
|
*
|
package/src/Request.ts
CHANGED
|
@@ -245,6 +245,7 @@ export const succeed: {
|
|
|
245
245
|
export interface Listeners {
|
|
246
246
|
readonly count: number
|
|
247
247
|
readonly observers: Set<(count: number) => void>
|
|
248
|
+
interrupted: boolean
|
|
248
249
|
addObserver(f: (count: number) => void): void
|
|
249
250
|
removeObserver(f: (count: number) => void): void
|
|
250
251
|
increment(): void
|
|
@@ -309,7 +310,7 @@ export interface Entry<out R> extends Entry.Variance<R> {
|
|
|
309
310
|
readonly listeners: Listeners
|
|
310
311
|
readonly ownerId: FiberId
|
|
311
312
|
readonly state: {
|
|
312
|
-
completed: boolean
|
|
313
|
+
completed: boolean
|
|
313
314
|
}
|
|
314
315
|
}
|
|
315
316
|
|
|
@@ -241,8 +241,12 @@ const runBlockedRequests = (self: RequestBlock.RequestBlock) =>
|
|
|
241
241
|
map.set(entry.request as Request<any, any>, entry)
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
+
const flat = arr.flat()
|
|
244
245
|
return core.fiberRefLocally(
|
|
245
|
-
invokeWithInterrupt(dataSource.runAll(arr),
|
|
246
|
+
invokeWithInterrupt(dataSource.runAll(arr), flat, () =>
|
|
247
|
+
flat.forEach((entry) => {
|
|
248
|
+
entry.listeners.interrupted = true
|
|
249
|
+
})),
|
|
246
250
|
currentRequestMap,
|
|
247
251
|
map
|
|
248
252
|
)
|
|
@@ -2143,7 +2147,17 @@ export const forEachConcurrentDiscard = <A, X, E, R>(
|
|
|
2143
2147
|
restore(internalFiber.join(processingFiber)),
|
|
2144
2148
|
() => {
|
|
2145
2149
|
onInterruptSignal()
|
|
2146
|
-
|
|
2150
|
+
const all = [processingFiber] as Array<FiberRuntime<any, any>>
|
|
2151
|
+
residual.map((blocked) => {
|
|
2152
|
+
const fiber = runFiber(blocked)
|
|
2153
|
+
parent._scheduler.scheduleTask(() => {
|
|
2154
|
+
fiber.unsafeInterruptAsFork(parent.id())
|
|
2155
|
+
}, 0)
|
|
2156
|
+
return fiber
|
|
2157
|
+
}).forEach((additional) => {
|
|
2158
|
+
all.push(additional as unknown as FiberRuntime<any, any>)
|
|
2159
|
+
})
|
|
2160
|
+
return core.exit(fiberJoinAll(all))
|
|
2147
2161
|
}
|
|
2148
2162
|
)),
|
|
2149
2163
|
() => core.forEachSequential(joinOrder, (f) => f.inheritAll)
|
|
@@ -3421,8 +3435,13 @@ export const ensuring: {
|
|
|
3421
3435
|
/** @internal */
|
|
3422
3436
|
export const invokeWithInterrupt: <A, E, R>(
|
|
3423
3437
|
self: Effect.Effect<A, E, R>,
|
|
3424
|
-
entries: ReadonlyArray<Entry<unknown
|
|
3425
|
-
) =>
|
|
3438
|
+
entries: ReadonlyArray<Entry<unknown>>,
|
|
3439
|
+
onInterrupt?: () => void
|
|
3440
|
+
) => Effect.Effect<void, E, R> = <A, E, R>(
|
|
3441
|
+
self: Effect.Effect<A, E, R>,
|
|
3442
|
+
entries: ReadonlyArray<Entry<unknown>>,
|
|
3443
|
+
onInterrupt?: () => void
|
|
3444
|
+
) =>
|
|
3426
3445
|
core.fiberIdWith((id) =>
|
|
3427
3446
|
core.flatMap(
|
|
3428
3447
|
core.flatMap(
|
|
@@ -3433,6 +3452,7 @@ export const invokeWithInterrupt: <A, E, R>(
|
|
|
3433
3452
|
const checkDone = () => {
|
|
3434
3453
|
if (counts.every((count) => count === 0)) {
|
|
3435
3454
|
cleanup.forEach((f) => f())
|
|
3455
|
+
onInterrupt?.()
|
|
3436
3456
|
cb(core.interruptFiber(processing))
|
|
3437
3457
|
}
|
|
3438
3458
|
}
|
package/src/internal/query.ts
CHANGED
|
@@ -8,7 +8,6 @@ import type * as Request from "../Request.js"
|
|
|
8
8
|
import type * as RequestResolver from "../RequestResolver.js"
|
|
9
9
|
import * as BlockedRequests from "./blockedRequests.js"
|
|
10
10
|
import { unsafeMakeWith } from "./cache.js"
|
|
11
|
-
import { isInterruptedOnly } from "./cause.js"
|
|
12
11
|
import * as core from "./core.js"
|
|
13
12
|
import { ensuring } from "./fiberRuntime.js"
|
|
14
13
|
import { Listeners } from "./request.js"
|
|
@@ -61,77 +60,81 @@ export const fromRequest = <
|
|
|
61
60
|
const proxy = new Proxy(request, {})
|
|
62
61
|
return core.fiberRefGetWith(currentCacheEnabled, (cacheEnabled) => {
|
|
63
62
|
if (cacheEnabled) {
|
|
64
|
-
|
|
63
|
+
const cached: Effect.Effect<any, any> = core.fiberRefGetWith(currentCache, (cache) =>
|
|
65
64
|
core.flatMap(cache.getEither(proxy), (orNew) => {
|
|
66
65
|
switch (orNew._tag) {
|
|
67
66
|
case "Left": {
|
|
67
|
+
if (orNew.left.listeners.interrupted) {
|
|
68
|
+
return core.flatMap(
|
|
69
|
+
cache.invalidateWhen(proxy, (entry) => entry.handle === orNew.left.handle),
|
|
70
|
+
() => cached
|
|
71
|
+
)
|
|
72
|
+
}
|
|
68
73
|
orNew.left.listeners.increment()
|
|
69
|
-
return core.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
return core.uninterruptibleMask((restore) =>
|
|
75
|
+
core.flatMap(
|
|
76
|
+
core.exit(core.blocked(
|
|
77
|
+
BlockedRequests.empty,
|
|
78
|
+
restore(core.deferredAwait(orNew.left.handle))
|
|
79
|
+
)),
|
|
80
|
+
(exit) => {
|
|
73
81
|
orNew.left.listeners.decrement()
|
|
74
|
-
return
|
|
75
|
-
cache.invalidateWhen(
|
|
76
|
-
proxy,
|
|
77
|
-
(entry) => entry.handle === orNew.left.handle
|
|
78
|
-
),
|
|
79
|
-
() => fromRequest(proxy, ds)
|
|
80
|
-
)
|
|
82
|
+
return exit
|
|
81
83
|
}
|
|
82
|
-
|
|
83
|
-
core.deferredAwait(orNew.left.handle),
|
|
84
|
-
core.sync(() => orNew.left.listeners.decrement())
|
|
85
|
-
)
|
|
86
|
-
})
|
|
84
|
+
)
|
|
87
85
|
)
|
|
88
86
|
}
|
|
89
87
|
case "Right": {
|
|
90
88
|
orNew.right.listeners.increment()
|
|
91
|
-
return core.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
89
|
+
return core.uninterruptibleMask((restore) =>
|
|
90
|
+
core.flatMap(
|
|
91
|
+
core.exit(
|
|
92
|
+
core.blocked(
|
|
93
|
+
BlockedRequests.single(
|
|
94
|
+
ds as RequestResolver.RequestResolver<A>,
|
|
95
|
+
BlockedRequests.makeEntry({
|
|
96
|
+
request: proxy,
|
|
97
|
+
result: orNew.right.handle,
|
|
98
|
+
listeners: orNew.right.listeners,
|
|
99
|
+
ownerId: id,
|
|
100
|
+
state: { completed: false }
|
|
101
|
+
})
|
|
102
|
+
),
|
|
103
|
+
restore(core.deferredAwait(orNew.right.handle))
|
|
104
|
+
)
|
|
105
|
+
),
|
|
106
|
+
() => {
|
|
107
|
+
orNew.right.listeners.decrement()
|
|
108
|
+
return core.deferredAwait(orNew.right.handle)
|
|
109
|
+
}
|
|
110
110
|
)
|
|
111
111
|
)
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}))
|
|
115
|
+
return cached
|
|
115
116
|
}
|
|
116
117
|
const listeners = new Listeners()
|
|
117
118
|
listeners.increment()
|
|
118
119
|
return core.flatMap(
|
|
119
120
|
core.deferredMake<Request.Request.Success<A>, Request.Request.Error<A>>(),
|
|
120
121
|
(ref) =>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
122
|
+
ensuring(
|
|
123
|
+
core.blocked(
|
|
124
|
+
BlockedRequests.single(
|
|
125
|
+
ds as RequestResolver.RequestResolver<A>,
|
|
126
|
+
BlockedRequests.makeEntry({
|
|
127
|
+
request: proxy,
|
|
128
|
+
result: ref,
|
|
129
|
+
listeners,
|
|
130
|
+
ownerId: id,
|
|
131
|
+
state: { completed: false }
|
|
132
|
+
})
|
|
133
|
+
),
|
|
134
|
+
core.deferredAwait(ref)
|
|
131
135
|
),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
core.sync(() => listeners.decrement())
|
|
136
|
+
core.sync(() =>
|
|
137
|
+
listeners.decrement()
|
|
135
138
|
)
|
|
136
139
|
)
|
|
137
140
|
)
|
package/src/internal/request.ts
CHANGED
package/src/internal/version.ts
CHANGED