@typed/fx 2.0.0-beta.5 → 2.0.0-beta.7
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/Fx/Fx.d.ts +9 -9
- package/dist/Fx/Fx.js +1 -1
- package/dist/Fx/TypeId.d.ts +3 -3
- package/dist/Fx/TypeId.js +2 -2
- package/dist/Fx/combinators/additive.d.ts +6 -6
- package/dist/Fx/combinators/additive.js +6 -6
- package/dist/Fx/combinators/catch.d.ts +7 -7
- package/dist/Fx/combinators/catch.js +7 -7
- package/dist/Fx/combinators/causes.d.ts +1 -1
- package/dist/Fx/combinators/causes.js +1 -1
- package/dist/Fx/combinators/changesWithEffect.d.ts +1 -1
- package/dist/Fx/combinators/changesWithEffect.js +1 -1
- package/dist/Fx/combinators/compact.d.ts +1 -1
- package/dist/Fx/combinators/compact.js +1 -1
- package/dist/Fx/combinators/concatMap.d.ts +2 -2
- package/dist/Fx/combinators/concatMap.js +2 -2
- package/dist/Fx/combinators/continueWith.d.ts +4 -4
- package/dist/Fx/combinators/continueWith.js +4 -4
- package/dist/Fx/combinators/debounce.d.ts +2 -2
- package/dist/Fx/combinators/debounce.d.ts.map +1 -1
- package/dist/Fx/combinators/debounce.js +1 -1
- package/dist/Fx/combinators/delay.d.ts +9 -7
- package/dist/Fx/combinators/delay.d.ts.map +1 -1
- package/dist/Fx/combinators/delay.js +8 -6
- package/dist/Fx/combinators/dropUntil.d.ts +2 -2
- package/dist/Fx/combinators/dropUntil.js +2 -2
- package/dist/Fx/combinators/during.d.ts +1 -1
- package/dist/Fx/combinators/during.js +1 -1
- package/dist/Fx/combinators/ensuring.d.ts +1 -1
- package/dist/Fx/combinators/ensuring.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMap.js +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustLatestMapEffect.js +1 -1
- package/dist/Fx/combinators/exhaustMap.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMap.js +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/exhaustMapEffect.js +1 -1
- package/dist/Fx/combinators/exit.d.ts +1 -1
- package/dist/Fx/combinators/exit.js +1 -1
- package/dist/Fx/combinators/filter.d.ts +1 -1
- package/dist/Fx/combinators/filter.js +1 -1
- package/dist/Fx/combinators/filterEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterEffect.js +1 -1
- package/dist/Fx/combinators/filterMap.d.ts +1 -1
- package/dist/Fx/combinators/filterMap.js +1 -1
- package/dist/Fx/combinators/filterMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoop.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoop.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCause.js +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopCauseEffect.js +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.d.ts +1 -1
- package/dist/Fx/combinators/filterMapLoopEffect.js +1 -1
- package/dist/Fx/combinators/flatMap.d.ts +2 -2
- package/dist/Fx/combinators/flatMap.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrently.js +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.d.ts +1 -1
- package/dist/Fx/combinators/flatMapConcurrentlyEffect.js +1 -1
- package/dist/Fx/combinators/flatMapEffect.d.ts +2 -2
- package/dist/Fx/combinators/flatMapEffect.js +1 -1
- package/dist/Fx/combinators/flip.d.ts +1 -1
- package/dist/Fx/combinators/flip.js +1 -1
- package/dist/Fx/combinators/gen.d.ts +1 -1
- package/dist/Fx/combinators/gen.js +1 -1
- package/dist/Fx/combinators/genScoped.d.ts +1 -1
- package/dist/Fx/combinators/genScoped.js +1 -1
- package/dist/Fx/combinators/grouped.d.ts +2 -2
- package/dist/Fx/combinators/grouped.js +2 -2
- package/dist/Fx/combinators/keyed.d.ts +2 -2
- package/dist/Fx/combinators/keyed.js +1 -1
- package/dist/Fx/combinators/loop.d.ts +1 -1
- package/dist/Fx/combinators/loop.js +1 -1
- package/dist/Fx/combinators/loopCause.d.ts +1 -1
- package/dist/Fx/combinators/loopCause.js +1 -1
- package/dist/Fx/combinators/loopCauseEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopCauseEffect.js +1 -1
- package/dist/Fx/combinators/loopEffect.d.ts +1 -1
- package/dist/Fx/combinators/loopEffect.js +1 -1
- package/dist/Fx/combinators/map.d.ts +2 -2
- package/dist/Fx/combinators/map.js +2 -2
- package/dist/Fx/combinators/mapBoth.d.ts +1 -1
- package/dist/Fx/combinators/mapBoth.js +1 -1
- package/dist/Fx/combinators/mapEffect.d.ts +1 -1
- package/dist/Fx/combinators/mapEffect.js +1 -1
- package/dist/Fx/combinators/mapError.d.ts +1 -1
- package/dist/Fx/combinators/mapError.js +1 -1
- package/dist/Fx/combinators/mergeAll.d.ts +1 -1
- package/dist/Fx/combinators/mergeAll.js +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts +1 -1
- package/dist/Fx/combinators/mergeOrdered.d.ts.map +1 -1
- package/dist/Fx/combinators/mergeOrdered.js +33 -11
- package/dist/Fx/combinators/onError.d.ts +1 -1
- package/dist/Fx/combinators/onError.js +1 -1
- package/dist/Fx/combinators/onExit.d.ts +1 -1
- package/dist/Fx/combinators/onExit.js +1 -1
- package/dist/Fx/combinators/onInterrupt.d.ts +1 -1
- package/dist/Fx/combinators/onInterrupt.js +1 -1
- package/dist/Fx/combinators/pairwise.d.ts +1 -1
- package/dist/Fx/combinators/pairwise.js +1 -1
- package/dist/Fx/combinators/provide.d.ts +4 -4
- package/dist/Fx/combinators/provide.js +4 -4
- package/dist/Fx/combinators/race.d.ts +2 -2
- package/dist/Fx/combinators/race.js +2 -2
- package/dist/Fx/combinators/repeat.d.ts +1 -1
- package/dist/Fx/combinators/repeat.js +1 -1
- package/dist/Fx/combinators/result.d.ts +1 -1
- package/dist/Fx/combinators/result.js +1 -1
- package/dist/Fx/combinators/retry.d.ts +1 -1
- package/dist/Fx/combinators/retry.js +1 -1
- package/dist/Fx/combinators/sample.d.ts +1 -1
- package/dist/Fx/combinators/sample.js +1 -1
- package/dist/Fx/combinators/scan.d.ts +2 -2
- package/dist/Fx/combinators/scan.js +2 -2
- package/dist/Fx/combinators/since.d.ts +1 -1
- package/dist/Fx/combinators/since.js +1 -1
- package/dist/Fx/combinators/skip.d.ts +2 -2
- package/dist/Fx/combinators/skip.js +2 -2
- package/dist/Fx/combinators/skipRepeats.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeats.js +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.d.ts +1 -1
- package/dist/Fx/combinators/skipRepeatsWith.js +1 -1
- package/dist/Fx/combinators/skipWhile.d.ts +4 -4
- package/dist/Fx/combinators/skipWhile.js +4 -4
- package/dist/Fx/combinators/slice.d.ts +3 -3
- package/dist/Fx/combinators/slice.js +2 -2
- package/dist/Fx/combinators/switchMap.d.ts +1 -1
- package/dist/Fx/combinators/switchMap.js +1 -1
- package/dist/Fx/combinators/switchMapEffect.d.ts +1 -1
- package/dist/Fx/combinators/switchMapEffect.js +1 -1
- package/dist/Fx/combinators/take.d.ts +2 -2
- package/dist/Fx/combinators/take.js +2 -2
- package/dist/Fx/combinators/takeUntil.d.ts +3 -3
- package/dist/Fx/combinators/takeUntil.js +3 -3
- package/dist/Fx/combinators/takeWhile.d.ts +2 -2
- package/dist/Fx/combinators/takeWhile.js +2 -2
- package/dist/Fx/combinators/tapEffect.d.ts +1 -1
- package/dist/Fx/combinators/tapEffect.js +1 -1
- package/dist/Fx/combinators/throttle.d.ts +3 -3
- package/dist/Fx/combinators/throttle.d.ts.map +1 -1
- package/dist/Fx/combinators/throttle.js +1 -1
- package/dist/Fx/combinators/timeout.d.ts +2 -2
- package/dist/Fx/combinators/timeout.js +2 -2
- package/dist/Fx/combinators/tuple.d.ts +2 -2
- package/dist/Fx/combinators/tuple.js +2 -2
- package/dist/Fx/combinators/until.d.ts +1 -1
- package/dist/Fx/combinators/until.js +1 -1
- package/dist/Fx/combinators/unwrap.d.ts +1 -1
- package/dist/Fx/combinators/unwrap.js +1 -1
- package/dist/Fx/combinators/unwrapScoped.d.ts +1 -1
- package/dist/Fx/combinators/unwrapScoped.js +1 -1
- package/dist/Fx/combinators/when.d.ts +2 -2
- package/dist/Fx/combinators/when.js +2 -2
- package/dist/Fx/combinators/withLatestFrom.d.ts +2 -2
- package/dist/Fx/combinators/withLatestFrom.js +2 -2
- package/dist/Fx/combinators/withSpan.d.ts +1 -1
- package/dist/Fx/combinators/withSpan.js +1 -1
- package/dist/Fx/combinators/zip.d.ts +4 -4
- package/dist/Fx/combinators/zip.js +4 -4
- package/dist/Fx/constructors/at.d.ts +1 -1
- package/dist/Fx/constructors/at.js +1 -1
- package/dist/Fx/constructors/die.d.ts +1 -1
- package/dist/Fx/constructors/die.js +1 -1
- package/dist/Fx/constructors/empty.d.ts +1 -1
- package/dist/Fx/constructors/empty.js +1 -1
- package/dist/Fx/constructors/fail.d.ts +1 -1
- package/dist/Fx/constructors/fail.js +1 -1
- package/dist/Fx/constructors/failCause.d.ts +1 -1
- package/dist/Fx/constructors/failCause.js +1 -1
- package/dist/Fx/constructors/fn.d.ts +4 -4
- package/dist/Fx/constructors/fn.js +1 -1
- package/dist/Fx/constructors/fromEffect.d.ts +2 -2
- package/dist/Fx/constructors/fromEffect.js +2 -2
- package/dist/Fx/constructors/fromFailures.d.ts +1 -1
- package/dist/Fx/constructors/fromFailures.js +1 -1
- package/dist/Fx/constructors/fromIterable.d.ts +1 -1
- package/dist/Fx/constructors/fromIterable.js +1 -1
- package/dist/Fx/constructors/fromSchedule.d.ts +6 -4
- package/dist/Fx/constructors/fromSchedule.d.ts.map +1 -1
- package/dist/Fx/constructors/fromSchedule.js +6 -4
- package/dist/Fx/constructors/interrupt.d.ts +1 -1
- package/dist/Fx/constructors/interrupt.js +1 -1
- package/dist/Fx/constructors/make.d.ts +9 -7
- package/dist/Fx/constructors/make.d.ts.map +1 -1
- package/dist/Fx/constructors/make.js +8 -6
- package/dist/Fx/constructors/periodic.d.ts +1 -1
- package/dist/Fx/constructors/periodic.js +1 -1
- package/dist/Fx/constructors/succeed.d.ts +4 -4
- package/dist/Fx/constructors/succeed.js +4 -4
- package/dist/Fx/constructors/suspend.d.ts +1 -1
- package/dist/Fx/constructors/suspend.js +1 -1
- package/dist/Fx/constructors/sync.d.ts +1 -1
- package/dist/Fx/constructors/sync.js +1 -1
- package/dist/Fx/run/collect.d.ts +4 -4
- package/dist/Fx/run/collect.js +4 -4
- package/dist/Fx/run/first.d.ts +1 -1
- package/dist/Fx/run/first.js +1 -1
- package/dist/Fx/run/fork.d.ts +2 -2
- package/dist/Fx/run/fork.js +2 -2
- package/dist/Fx/run/observe.d.ts +7 -5
- package/dist/Fx/run/observe.d.ts.map +1 -1
- package/dist/Fx/run/observe.js +30 -15
- package/dist/Fx/run/runPromise.d.ts +2 -2
- package/dist/Fx/run/runPromise.js +2 -2
- package/dist/Fx/stream.d.ts +4 -4
- package/dist/Fx/stream.js +2 -2
- package/dist/Push/Push.d.ts +30 -30
- package/dist/Push/Push.js +26 -26
- package/dist/RefSubject/Hydration.d.ts +24 -24
- package/dist/RefSubject/Hydration.js +5 -5
- package/dist/RefSubject/RefArray.d.ts +31 -31
- package/dist/RefSubject/RefArray.js +30 -30
- package/dist/RefSubject/RefBigDecimal.d.ts +20 -20
- package/dist/RefSubject/RefBigDecimal.js +19 -19
- package/dist/RefSubject/RefBigInt.d.ts +15 -15
- package/dist/RefSubject/RefBigInt.js +14 -14
- package/dist/RefSubject/RefBoolean.d.ts +15 -15
- package/dist/RefSubject/RefBoolean.js +14 -14
- package/dist/RefSubject/RefCause.d.ts +11 -11
- package/dist/RefSubject/RefCause.js +10 -10
- package/dist/RefSubject/RefChunk.d.ts +37 -37
- package/dist/RefSubject/RefChunk.js +36 -36
- package/dist/RefSubject/RefDateTime.d.ts +11 -11
- package/dist/RefSubject/RefDateTime.js +10 -10
- package/dist/RefSubject/RefDuration.d.ts +14 -14
- package/dist/RefSubject/RefDuration.js +13 -13
- package/dist/RefSubject/RefGraph.d.ts +29 -29
- package/dist/RefSubject/RefGraph.js +28 -28
- package/dist/RefSubject/RefHashMap.d.ts +27 -27
- package/dist/RefSubject/RefHashMap.js +26 -26
- package/dist/RefSubject/RefHashRing.d.ts +13 -13
- package/dist/RefSubject/RefHashRing.js +12 -12
- package/dist/RefSubject/RefHashSet.d.ts +21 -21
- package/dist/RefSubject/RefHashSet.js +20 -20
- package/dist/RefSubject/RefIterable.d.ts +30 -30
- package/dist/RefSubject/RefIterable.js +29 -29
- package/dist/RefSubject/RefOption.d.ts +13 -13
- package/dist/RefSubject/RefOption.js +12 -12
- package/dist/RefSubject/RefRecord.d.ts +31 -31
- package/dist/RefSubject/RefRecord.js +30 -30
- package/dist/RefSubject/RefResult.d.ts +12 -12
- package/dist/RefSubject/RefResult.js +11 -11
- package/dist/RefSubject/RefString.d.ts +17 -17
- package/dist/RefSubject/RefString.js +16 -16
- package/dist/RefSubject/RefStruct.d.ts +13 -13
- package/dist/RefSubject/RefStruct.js +12 -12
- package/dist/RefSubject/RefSubject.d.ts +93 -94
- package/dist/RefSubject/RefSubject.d.ts.map +1 -1
- package/dist/RefSubject/RefSubject.js +132 -77
- package/dist/RefSubject/RefTrie.d.ts +26 -26
- package/dist/RefSubject/RefTrie.js +25 -25
- package/dist/RefSubject/RefTuple.d.ts +11 -11
- package/dist/RefSubject/RefTuple.js +9 -9
- package/dist/Sink/Sink.d.ts +21 -19
- package/dist/Sink/Sink.d.ts.map +1 -1
- package/dist/Sink/Sink.js +5 -4
- package/dist/Sink/combinators.d.ts +33 -33
- package/dist/Sink/combinators.js +32 -32
- package/dist/Subject/Subject.d.ts +14 -13
- package/dist/Subject/Subject.d.ts.map +1 -1
- package/dist/Subject/Subject.js +11 -10
- package/dist/Versioned/Versioned.d.ts +31 -28
- package/dist/Versioned/Versioned.d.ts.map +1 -1
- package/dist/Versioned/Versioned.js +45 -37
- package/package.json +2 -1
|
@@ -22,7 +22,7 @@ import { Result } from "effect";
|
|
|
22
22
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
23
23
|
*
|
|
24
24
|
* @since 1.18.0
|
|
25
|
-
* @category
|
|
25
|
+
* @category Constructors
|
|
26
26
|
*/
|
|
27
27
|
export function make(initial) {
|
|
28
28
|
return RefSubject.make(initial, { eq: equals });
|
|
@@ -44,7 +44,7 @@ export function make(initial) {
|
|
|
44
44
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
45
45
|
*
|
|
46
46
|
* @since 1.18.0
|
|
47
|
-
* @category
|
|
47
|
+
* @category State updates
|
|
48
48
|
*/
|
|
49
49
|
export const set = dual(3, function set(ref, key, value) {
|
|
50
50
|
return RefSubject.update(ref, HashMap.set(key, value));
|
|
@@ -63,7 +63,7 @@ export const set = dual(3, function set(ref, key, value) {
|
|
|
63
63
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
64
64
|
*
|
|
65
65
|
* @since 1.18.0
|
|
66
|
-
* @category
|
|
66
|
+
* @category State updates
|
|
67
67
|
*/
|
|
68
68
|
export const remove = dual(2, function remove(ref, key) {
|
|
69
69
|
return RefSubject.update(ref, HashMap.remove(key));
|
|
@@ -82,7 +82,7 @@ export const remove = dual(2, function remove(ref, key) {
|
|
|
82
82
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
83
83
|
*
|
|
84
84
|
* @since 1.18.0
|
|
85
|
-
* @category
|
|
85
|
+
* @category State updates
|
|
86
86
|
*/
|
|
87
87
|
export const modify = dual(3, function modify(ref, key, f) {
|
|
88
88
|
return RefSubject.update(ref, HashMap.modify(key, f));
|
|
@@ -101,7 +101,7 @@ export const modify = dual(3, function modify(ref, key, f) {
|
|
|
101
101
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
102
102
|
*
|
|
103
103
|
* @since 1.18.0
|
|
104
|
-
* @category
|
|
104
|
+
* @category State updates
|
|
105
105
|
*/
|
|
106
106
|
export const modifyAt = dual(3, function modifyAt(ref, key, f) {
|
|
107
107
|
return RefSubject.update(ref, HashMap.modifyAt(key, f));
|
|
@@ -120,7 +120,7 @@ export const modifyAt = dual(3, function modifyAt(ref, key, f) {
|
|
|
120
120
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
121
121
|
*
|
|
122
122
|
* @since 1.18.0
|
|
123
|
-
* @category
|
|
123
|
+
* @category State updates
|
|
124
124
|
*/
|
|
125
125
|
export const setMany = dual(2, function setMany(ref, entries) {
|
|
126
126
|
return RefSubject.update(ref, HashMap.setMany(entries));
|
|
@@ -139,7 +139,7 @@ export const setMany = dual(2, function setMany(ref, entries) {
|
|
|
139
139
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
140
140
|
*
|
|
141
141
|
* @since 1.18.0
|
|
142
|
-
* @category
|
|
142
|
+
* @category State updates
|
|
143
143
|
*/
|
|
144
144
|
export const removeMany = dual(2, function removeMany(ref, keys) {
|
|
145
145
|
return RefSubject.update(ref, HashMap.removeMany(keys));
|
|
@@ -158,7 +158,7 @@ export const removeMany = dual(2, function removeMany(ref, keys) {
|
|
|
158
158
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
159
159
|
*
|
|
160
160
|
* @since 1.18.0
|
|
161
|
-
* @category
|
|
161
|
+
* @category State updates
|
|
162
162
|
*/
|
|
163
163
|
export const clear = (ref) => RefSubject.update(ref, () => HashMap.empty());
|
|
164
164
|
/**
|
|
@@ -175,7 +175,7 @@ export const clear = (ref) => RefSubject.update(ref, () => HashMap.empty());
|
|
|
175
175
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
176
176
|
*
|
|
177
177
|
* @since 1.18.0
|
|
178
|
-
* @category
|
|
178
|
+
* @category State updates
|
|
179
179
|
*/
|
|
180
180
|
export const union = dual(2, function union(ref, that) {
|
|
181
181
|
return RefSubject.update(ref, HashMap.union(that));
|
|
@@ -193,7 +193,7 @@ export const union = dual(2, function union(ref, that) {
|
|
|
193
193
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
194
194
|
* acquires no resource. It returns the committed HashMap and retains the ref's E and R channels.
|
|
195
195
|
* @since 1.18.0
|
|
196
|
-
* @category
|
|
196
|
+
* @category State updates
|
|
197
197
|
*/
|
|
198
198
|
export const filter = dual(2, function filter(ref, predicate) {
|
|
199
199
|
return RefSubject.update(ref, HashMap.filter(predicate));
|
|
@@ -211,7 +211,7 @@ export const filter = dual(2, function filter(ref, predicate) {
|
|
|
211
211
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
212
212
|
* acquires no resource. It returns the committed HashMap and retains the ref's E and R channels.
|
|
213
213
|
* @since 1.18.0
|
|
214
|
-
* @category
|
|
214
|
+
* @category State updates
|
|
215
215
|
*/
|
|
216
216
|
export const map = dual(2, function map(ref, f) {
|
|
217
217
|
return RefSubject.update(ref, HashMap.map(f));
|
|
@@ -233,7 +233,7 @@ export const map = dual(2, function map(ref, f) {
|
|
|
233
233
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
234
234
|
*
|
|
235
235
|
* @since 1.18.0
|
|
236
|
-
* @category
|
|
236
|
+
* @category Derived queries
|
|
237
237
|
*/
|
|
238
238
|
export const size = (ref) => RefSubject.map(ref, HashMap.size);
|
|
239
239
|
/**
|
|
@@ -250,7 +250,7 @@ export const size = (ref) => RefSubject.map(ref, HashMap.size);
|
|
|
250
250
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
251
251
|
*
|
|
252
252
|
* @since 1.18.0
|
|
253
|
-
* @category
|
|
253
|
+
* @category State predicates
|
|
254
254
|
*/
|
|
255
255
|
export const isEmpty = (ref) => RefSubject.map(ref, HashMap.isEmpty);
|
|
256
256
|
/**
|
|
@@ -267,7 +267,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, HashMap.isEmpty);
|
|
|
267
267
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
268
268
|
*
|
|
269
269
|
* @since 1.18.0
|
|
270
|
-
* @category
|
|
270
|
+
* @category State predicates
|
|
271
271
|
*/
|
|
272
272
|
export const isNonEmpty = (ref) => RefSubject.map(ref, (m) => !HashMap.isEmpty(m));
|
|
273
273
|
/**
|
|
@@ -284,7 +284,7 @@ export const isNonEmpty = (ref) => RefSubject.map(ref, (m) => !HashMap.isEmpty(m
|
|
|
284
284
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
285
285
|
*
|
|
286
286
|
* @since 1.18.0
|
|
287
|
-
* @category
|
|
287
|
+
* @category Derived queries
|
|
288
288
|
*/
|
|
289
289
|
export const keys = (ref) => RefSubject.map(ref, (m) => Array.from(HashMap.keys(m)));
|
|
290
290
|
/**
|
|
@@ -301,7 +301,7 @@ export const keys = (ref) => RefSubject.map(ref, (m) => Array.from(HashMap.keys(
|
|
|
301
301
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
302
302
|
*
|
|
303
303
|
* @since 1.18.0
|
|
304
|
-
* @category
|
|
304
|
+
* @category Derived queries
|
|
305
305
|
*/
|
|
306
306
|
export const values = (ref) => RefSubject.map(ref, HashMap.toValues);
|
|
307
307
|
/**
|
|
@@ -318,7 +318,7 @@ export const values = (ref) => RefSubject.map(ref, HashMap.toValues);
|
|
|
318
318
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
319
319
|
*
|
|
320
320
|
* @since 1.18.0
|
|
321
|
-
* @category
|
|
321
|
+
* @category Derived queries
|
|
322
322
|
*/
|
|
323
323
|
export const entries = (ref) => RefSubject.map(ref, HashMap.toEntries);
|
|
324
324
|
/**
|
|
@@ -335,7 +335,7 @@ export const entries = (ref) => RefSubject.map(ref, HashMap.toEntries);
|
|
|
335
335
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
336
336
|
*
|
|
337
337
|
* @since 1.18.0
|
|
338
|
-
* @category
|
|
338
|
+
* @category State predicates
|
|
339
339
|
*/
|
|
340
340
|
export const has = dual(2, function has(ref, key) {
|
|
341
341
|
return RefSubject.map(ref, HashMap.has(key));
|
|
@@ -354,7 +354,7 @@ export const has = dual(2, function has(ref, key) {
|
|
|
354
354
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
355
355
|
*
|
|
356
356
|
* @since 1.18.0
|
|
357
|
-
* @category
|
|
357
|
+
* @category Derived queries
|
|
358
358
|
*/
|
|
359
359
|
export const mapValues = dual(2, function mapValues(ref, f) {
|
|
360
360
|
return RefSubject.map(ref, HashMap.map(f));
|
|
@@ -373,7 +373,7 @@ export const mapValues = dual(2, function mapValues(ref, f) {
|
|
|
373
373
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
374
374
|
*
|
|
375
375
|
* @since 1.18.0
|
|
376
|
-
* @category
|
|
376
|
+
* @category Derived queries
|
|
377
377
|
*/
|
|
378
378
|
export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
379
379
|
return RefSubject.map(ref, HashMap.filter(predicate));
|
|
@@ -392,7 +392,7 @@ export const filterValues = dual(2, function filterValues(ref, predicate) {
|
|
|
392
392
|
* Fx observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
393
393
|
*
|
|
394
394
|
* @since 1.18.0
|
|
395
|
-
* @category
|
|
395
|
+
* @category Derived queries
|
|
396
396
|
*/
|
|
397
397
|
export const filterMapValues = dual(2, function filterMapValues(ref, f) {
|
|
398
398
|
return RefSubject.map(ref, HashMap.filterMap((value, key) => Option.match(f(value, key), {
|
|
@@ -414,7 +414,7 @@ export const filterMapValues = dual(2, function filterMapValues(ref, f) {
|
|
|
414
414
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
415
415
|
*
|
|
416
416
|
* @since 1.18.0
|
|
417
|
-
* @category
|
|
417
|
+
* @category Derived queries
|
|
418
418
|
*/
|
|
419
419
|
export const reduce = dual(3, function reduce(ref, b, f) {
|
|
420
420
|
return RefSubject.map(ref, HashMap.reduce(b, f));
|
|
@@ -433,7 +433,7 @@ export const reduce = dual(3, function reduce(ref, b, f) {
|
|
|
433
433
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
434
434
|
*
|
|
435
435
|
* @since 1.18.0
|
|
436
|
-
* @category
|
|
436
|
+
* @category State predicates
|
|
437
437
|
*/
|
|
438
438
|
export const some = dual(2, function some(ref, predicate) {
|
|
439
439
|
return RefSubject.map(ref, HashMap.some(predicate));
|
|
@@ -452,7 +452,7 @@ export const some = dual(2, function some(ref, predicate) {
|
|
|
452
452
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
453
453
|
*
|
|
454
454
|
* @since 1.18.0
|
|
455
|
-
* @category
|
|
455
|
+
* @category State predicates
|
|
456
456
|
*/
|
|
457
457
|
export const every = dual(2, function every(ref, predicate) {
|
|
458
458
|
return RefSubject.map(ref, HashMap.every(predicate));
|
|
@@ -474,7 +474,7 @@ export const every = dual(2, function every(ref, predicate) {
|
|
|
474
474
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
475
475
|
*
|
|
476
476
|
* @since 1.18.0
|
|
477
|
-
* @category
|
|
477
|
+
* @category Optional queries
|
|
478
478
|
*/
|
|
479
479
|
export const get = dual(2, function get(ref, key) {
|
|
480
480
|
return RefSubject.filterMap(ref, HashMap.get(key));
|
|
@@ -493,7 +493,7 @@ export const get = dual(2, function get(ref, key) {
|
|
|
493
493
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
494
494
|
*
|
|
495
495
|
* @since 1.18.0
|
|
496
|
-
* @category
|
|
496
|
+
* @category Optional queries
|
|
497
497
|
*/
|
|
498
498
|
export const findFirst = dual(2, function findFirst(ref, predicate) {
|
|
499
499
|
return RefSubject.filterMap(ref, (g) => HashMap.findFirst(g, predicate));
|
|
@@ -22,7 +22,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
22
22
|
* services, interruption, and Scope requirements expressed by its members.
|
|
23
23
|
*
|
|
24
24
|
* @since 1.18.0
|
|
25
|
-
* @category models
|
|
25
|
+
* @category State models
|
|
26
26
|
*/
|
|
27
27
|
export interface RefHashRing<in out A extends PrimaryKey.PrimaryKey, in out E = never, out R = never> extends RefSubject.RefSubject<HashRing.HashRing<A>, E, R> {
|
|
28
28
|
}
|
|
@@ -40,7 +40,7 @@ export interface RefHashRing<in out A extends PrimaryKey.PrimaryKey, in out E =
|
|
|
40
40
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
41
41
|
*
|
|
42
42
|
* @since 1.18.0
|
|
43
|
-
* @category
|
|
43
|
+
* @category Constructors
|
|
44
44
|
*/
|
|
45
45
|
export declare function make<A extends PrimaryKey.PrimaryKey, E = never, R = never>(initial: HashRing.HashRing<A> | Effect.Effect<HashRing.HashRing<A>, E, R> | Fx.Fx<HashRing.HashRing<A>, E, R>): Effect.Effect<RefHashRing<A, E>, never, R | Scope.Scope>;
|
|
46
46
|
/**
|
|
@@ -57,7 +57,7 @@ export declare function make<A extends PrimaryKey.PrimaryKey, E = never, R = nev
|
|
|
57
57
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
58
58
|
*
|
|
59
59
|
* @since 1.18.0
|
|
60
|
-
* @category
|
|
60
|
+
* @category Constructors
|
|
61
61
|
*/
|
|
62
62
|
export declare function empty<A extends PrimaryKey.PrimaryKey, E = never, R = never>(options?: {
|
|
63
63
|
readonly baseWeight?: number;
|
|
@@ -76,7 +76,7 @@ export declare function empty<A extends PrimaryKey.PrimaryKey, E = never, R = ne
|
|
|
76
76
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
77
77
|
*
|
|
78
78
|
* @since 1.18.0
|
|
79
|
-
* @category
|
|
79
|
+
* @category State updates
|
|
80
80
|
*/
|
|
81
81
|
export declare const add: {
|
|
82
82
|
<A extends PrimaryKey.PrimaryKey>(node: A, options?: {
|
|
@@ -100,7 +100,7 @@ export declare const add: {
|
|
|
100
100
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
101
101
|
*
|
|
102
102
|
* @since 1.18.0
|
|
103
|
-
* @category
|
|
103
|
+
* @category State updates
|
|
104
104
|
*/
|
|
105
105
|
export declare const addMany: {
|
|
106
106
|
<A extends PrimaryKey.PrimaryKey>(nodes: Iterable<A>, options?: {
|
|
@@ -124,7 +124,7 @@ export declare const addMany: {
|
|
|
124
124
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
125
125
|
*
|
|
126
126
|
* @since 1.18.0
|
|
127
|
-
* @category
|
|
127
|
+
* @category State updates
|
|
128
128
|
*/
|
|
129
129
|
export declare const remove: {
|
|
130
130
|
<A extends PrimaryKey.PrimaryKey>(node: A): <E, R>(ref: RefHashRing<A, E, R>) => Effect.Effect<HashRing.HashRing<A>, E, R>;
|
|
@@ -144,7 +144,7 @@ export declare const remove: {
|
|
|
144
144
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
145
145
|
*
|
|
146
146
|
* @since 1.18.0
|
|
147
|
-
* @category
|
|
147
|
+
* @category State predicates
|
|
148
148
|
*/
|
|
149
149
|
export declare const has: {
|
|
150
150
|
<A extends PrimaryKey.PrimaryKey>(node: A): <E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -164,7 +164,7 @@ export declare const has: {
|
|
|
164
164
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
165
165
|
*
|
|
166
166
|
* @since 1.18.0
|
|
167
|
-
* @category
|
|
167
|
+
* @category Derived queries
|
|
168
168
|
*/
|
|
169
169
|
export declare const size: <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Computed<number, E, R>;
|
|
170
170
|
/**
|
|
@@ -181,7 +181,7 @@ export declare const size: <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashR
|
|
|
181
181
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
182
182
|
*
|
|
183
183
|
* @since 1.18.0
|
|
184
|
-
* @category
|
|
184
|
+
* @category State predicates
|
|
185
185
|
*/
|
|
186
186
|
export declare const isEmpty: <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
187
187
|
/**
|
|
@@ -199,7 +199,7 @@ export declare const isEmpty: <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHa
|
|
|
199
199
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
200
200
|
*
|
|
201
201
|
* @since 1.18.0
|
|
202
|
-
* @category
|
|
202
|
+
* @category Derived queries
|
|
203
203
|
*/
|
|
204
204
|
export declare const getNode: {
|
|
205
205
|
(input: string): <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Computed<A | undefined, E, R>;
|
|
@@ -220,7 +220,7 @@ export declare const getNode: {
|
|
|
220
220
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
221
221
|
*
|
|
222
222
|
* @since 1.18.0
|
|
223
|
-
* @category
|
|
223
|
+
* @category Derived queries
|
|
224
224
|
*/
|
|
225
225
|
export declare const getShards: {
|
|
226
226
|
(count: number): <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Computed<Array<A> | undefined, E, R>;
|
|
@@ -240,7 +240,7 @@ export declare const getShards: {
|
|
|
240
240
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
241
241
|
*
|
|
242
242
|
* @since 1.18.0
|
|
243
|
-
* @category
|
|
243
|
+
* @category Derived queries
|
|
244
244
|
*/
|
|
245
245
|
export declare const values: <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Computed<Array<A>, E, R>;
|
|
246
246
|
/**
|
|
@@ -258,7 +258,7 @@ export declare const values: <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHas
|
|
|
258
258
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
259
259
|
*
|
|
260
260
|
* @since 1.18.0
|
|
261
|
-
* @category
|
|
261
|
+
* @category Optional queries
|
|
262
262
|
*/
|
|
263
263
|
export declare const get: {
|
|
264
264
|
(input: string): <A extends PrimaryKey.PrimaryKey, E, R>(ref: RefHashRing<A, E, R>) => RefSubject.Filtered<A, E, R>;
|
|
@@ -21,7 +21,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
21
21
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
22
22
|
*
|
|
23
23
|
* @since 1.18.0
|
|
24
|
-
* @category
|
|
24
|
+
* @category Constructors
|
|
25
25
|
*/
|
|
26
26
|
export function make(initial) {
|
|
27
27
|
return RefSubject.make(initial, { eq: equals });
|
|
@@ -40,7 +40,7 @@ export function make(initial) {
|
|
|
40
40
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
41
41
|
*
|
|
42
42
|
* @since 1.18.0
|
|
43
|
-
* @category
|
|
43
|
+
* @category Constructors
|
|
44
44
|
*/
|
|
45
45
|
export function empty(options) {
|
|
46
46
|
return RefSubject.make(HashRing.make(options), { eq: equals });
|
|
@@ -67,7 +67,7 @@ function copyRing(ring) {
|
|
|
67
67
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
68
68
|
*
|
|
69
69
|
* @since 1.18.0
|
|
70
|
-
* @category
|
|
70
|
+
* @category State updates
|
|
71
71
|
*/
|
|
72
72
|
export const add = dual((args) => RefSubject.isRefSubject(args[0]), function add(ref, node, options) {
|
|
73
73
|
return RefSubject.update(ref, (ring) => HashRing.add(copyRing(ring), node, options));
|
|
@@ -86,7 +86,7 @@ export const add = dual((args) => RefSubject.isRefSubject(args[0]), function add
|
|
|
86
86
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
87
87
|
*
|
|
88
88
|
* @since 1.18.0
|
|
89
|
-
* @category
|
|
89
|
+
* @category State updates
|
|
90
90
|
*/
|
|
91
91
|
export const addMany = dual((args) => RefSubject.isRefSubject(args[0]), function addMany(ref, nodes, options) {
|
|
92
92
|
return RefSubject.update(ref, (ring) => HashRing.addMany(copyRing(ring), nodes, options));
|
|
@@ -105,7 +105,7 @@ export const addMany = dual((args) => RefSubject.isRefSubject(args[0]), function
|
|
|
105
105
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
106
106
|
*
|
|
107
107
|
* @since 1.18.0
|
|
108
|
-
* @category
|
|
108
|
+
* @category State updates
|
|
109
109
|
*/
|
|
110
110
|
export const remove = dual(2, function remove(ref, node) {
|
|
111
111
|
return RefSubject.update(ref, (ring) => HashRing.remove(copyRing(ring), node));
|
|
@@ -127,7 +127,7 @@ export const remove = dual(2, function remove(ref, node) {
|
|
|
127
127
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
128
128
|
*
|
|
129
129
|
* @since 1.18.0
|
|
130
|
-
* @category
|
|
130
|
+
* @category State predicates
|
|
131
131
|
*/
|
|
132
132
|
export const has = dual(2, function has(ref, node) {
|
|
133
133
|
return RefSubject.map(ref, HashRing.has(node));
|
|
@@ -146,7 +146,7 @@ export const has = dual(2, function has(ref, node) {
|
|
|
146
146
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
147
147
|
*
|
|
148
148
|
* @since 1.18.0
|
|
149
|
-
* @category
|
|
149
|
+
* @category Derived queries
|
|
150
150
|
*/
|
|
151
151
|
export const size = (ref) => RefSubject.map(ref, (ring) => ring.nodes.size);
|
|
152
152
|
/**
|
|
@@ -163,7 +163,7 @@ export const size = (ref) => RefSubject.map(ref, (ring) => ring.nodes.size);
|
|
|
163
163
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
164
164
|
*
|
|
165
165
|
* @since 1.18.0
|
|
166
|
-
* @category
|
|
166
|
+
* @category State predicates
|
|
167
167
|
*/
|
|
168
168
|
export const isEmpty = (ref) => RefSubject.map(ref, (ring) => ring.nodes.size === 0);
|
|
169
169
|
/**
|
|
@@ -181,7 +181,7 @@ export const isEmpty = (ref) => RefSubject.map(ref, (ring) => ring.nodes.size ==
|
|
|
181
181
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
182
182
|
*
|
|
183
183
|
* @since 1.18.0
|
|
184
|
-
* @category
|
|
184
|
+
* @category Derived queries
|
|
185
185
|
*/
|
|
186
186
|
export const getNode = dual(2, function getNode(ref, input) {
|
|
187
187
|
return RefSubject.map(ref, (ring) => HashRing.get(ring, input));
|
|
@@ -201,7 +201,7 @@ export const getNode = dual(2, function getNode(ref, input) {
|
|
|
201
201
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
202
202
|
*
|
|
203
203
|
* @since 1.18.0
|
|
204
|
-
* @category
|
|
204
|
+
* @category Derived queries
|
|
205
205
|
*/
|
|
206
206
|
export const getShards = dual(2, function getShards(ref, count) {
|
|
207
207
|
return RefSubject.map(ref, (ring) => HashRing.getShards(ring, count));
|
|
@@ -220,7 +220,7 @@ export const getShards = dual(2, function getShards(ref, count) {
|
|
|
220
220
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
221
221
|
*
|
|
222
222
|
* @since 1.18.0
|
|
223
|
-
* @category
|
|
223
|
+
* @category Derived queries
|
|
224
224
|
*/
|
|
225
225
|
export const values = (ref) => RefSubject.map(ref, (ring) => Array.from(ring));
|
|
226
226
|
// ========================================
|
|
@@ -241,7 +241,7 @@ export const values = (ref) => RefSubject.map(ref, (ring) => Array.from(ring));
|
|
|
241
241
|
* while absent; the observing Scope owns and finalizes its Fx subscription.
|
|
242
242
|
*
|
|
243
243
|
* @since 1.18.0
|
|
244
|
-
* @category
|
|
244
|
+
* @category Optional queries
|
|
245
245
|
*/
|
|
246
246
|
export const get = dual(2, function get(ref, input) {
|
|
247
247
|
return RefSubject.filterMap(ref, (ring) => Option.fromUndefinedOr(HashRing.get(ring, input)));
|
|
@@ -21,7 +21,7 @@ import * as RefSubject from "./RefSubject.js";
|
|
|
21
21
|
* services, interruption, and Scope requirements expressed by its members.
|
|
22
22
|
*
|
|
23
23
|
* @since 1.18.0
|
|
24
|
-
* @category models
|
|
24
|
+
* @category State models
|
|
25
25
|
*/
|
|
26
26
|
export interface RefHashSet<in out V, in out E = never, out R = never> extends RefSubject.RefSubject<HashSet.HashSet<V>, E, R> {
|
|
27
27
|
}
|
|
@@ -39,7 +39,7 @@ export interface RefHashSet<in out V, in out E = never, out R = never> extends R
|
|
|
39
39
|
* and cleanup; source failures and services stay on reads and pushes.
|
|
40
40
|
*
|
|
41
41
|
* @since 1.18.0
|
|
42
|
-
* @category
|
|
42
|
+
* @category Constructors
|
|
43
43
|
*/
|
|
44
44
|
export declare function make<V, E = never, R = never>(initial: HashSet.HashSet<V> | Effect.Effect<HashSet.HashSet<V>, E, R> | Fx.Fx<HashSet.HashSet<V>, E, R>): Effect.Effect<RefHashSet<V, E>, never, R | Scope.Scope>;
|
|
45
45
|
/**
|
|
@@ -56,7 +56,7 @@ export declare function make<V, E = never, R = never>(initial: HashSet.HashSet<V
|
|
|
56
56
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
57
57
|
*
|
|
58
58
|
* @since 1.18.0
|
|
59
|
-
* @category
|
|
59
|
+
* @category State updates
|
|
60
60
|
*/
|
|
61
61
|
export declare const add: {
|
|
62
62
|
<V>(value: V): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -76,7 +76,7 @@ export declare const add: {
|
|
|
76
76
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
77
77
|
*
|
|
78
78
|
* @since 1.18.0
|
|
79
|
-
* @category
|
|
79
|
+
* @category State updates
|
|
80
80
|
*/
|
|
81
81
|
export declare const remove: {
|
|
82
82
|
<V>(value: V): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -96,7 +96,7 @@ export declare const remove: {
|
|
|
96
96
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
97
97
|
*
|
|
98
98
|
* @since 1.18.0
|
|
99
|
-
* @category
|
|
99
|
+
* @category State updates
|
|
100
100
|
*/
|
|
101
101
|
export declare const clear: <V, E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
102
102
|
/**
|
|
@@ -113,7 +113,7 @@ export declare const clear: <V, E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect
|
|
|
113
113
|
* It acquires no resource; failures and services remain those of the source ref.
|
|
114
114
|
*
|
|
115
115
|
* @since 1.18.0
|
|
116
|
-
* @category
|
|
116
|
+
* @category State updates
|
|
117
117
|
*/
|
|
118
118
|
export declare const union: {
|
|
119
119
|
<V>(that: HashSet.HashSet<V>): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -133,7 +133,7 @@ export declare const union: {
|
|
|
133
133
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
134
134
|
*
|
|
135
135
|
* @since 1.18.0
|
|
136
|
-
* @category
|
|
136
|
+
* @category State updates
|
|
137
137
|
*/
|
|
138
138
|
export declare const intersection: {
|
|
139
139
|
<V>(that: HashSet.HashSet<V>): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -153,7 +153,7 @@ export declare const intersection: {
|
|
|
153
153
|
* value. It acquires no resource; failures and services remain those of the source ref.
|
|
154
154
|
*
|
|
155
155
|
* @since 1.18.0
|
|
156
|
-
* @category
|
|
156
|
+
* @category State updates
|
|
157
157
|
*/
|
|
158
158
|
export declare const difference: {
|
|
159
159
|
<V>(that: HashSet.HashSet<V>): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -172,7 +172,7 @@ export declare const difference: {
|
|
|
172
172
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
173
173
|
* acquires no resource. It returns the committed HashSet and retains the ref's E and R channels.
|
|
174
174
|
* @since 1.18.0
|
|
175
|
-
* @category
|
|
175
|
+
* @category State updates
|
|
176
176
|
*/
|
|
177
177
|
export declare const filter: {
|
|
178
178
|
<V>(predicate: (value: V) => boolean): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -191,7 +191,7 @@ export declare const filter: {
|
|
|
191
191
|
* The Effect starts when run, participates in the source ref's serialized update boundary, and
|
|
192
192
|
* acquires no resource. It returns the committed HashSet and retains the ref's E and R channels.
|
|
193
193
|
* @since 1.18.0
|
|
194
|
-
* @category
|
|
194
|
+
* @category State updates
|
|
195
195
|
*/
|
|
196
196
|
export declare const map: {
|
|
197
197
|
<V>(f: (value: V) => V): <E, R>(ref: RefHashSet<V, E, R>) => Effect.Effect<HashSet.HashSet<V>, E, R>;
|
|
@@ -211,7 +211,7 @@ export declare const map: {
|
|
|
211
211
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
212
212
|
*
|
|
213
213
|
* @since 1.18.0
|
|
214
|
-
* @category
|
|
214
|
+
* @category Derived queries
|
|
215
215
|
*/
|
|
216
216
|
export declare const size: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<number, E, R>;
|
|
217
217
|
/**
|
|
@@ -228,7 +228,7 @@ export declare const size: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Com
|
|
|
228
228
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
229
229
|
*
|
|
230
230
|
* @since 1.18.0
|
|
231
|
-
* @category
|
|
231
|
+
* @category State predicates
|
|
232
232
|
*/
|
|
233
233
|
export declare const isEmpty: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
234
234
|
/**
|
|
@@ -245,7 +245,7 @@ export declare const isEmpty: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubject.
|
|
|
245
245
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
246
246
|
*
|
|
247
247
|
* @since 1.18.0
|
|
248
|
-
* @category
|
|
248
|
+
* @category State predicates
|
|
249
249
|
*/
|
|
250
250
|
export declare const isNonEmpty: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
251
251
|
/**
|
|
@@ -262,7 +262,7 @@ export declare const isNonEmpty: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubje
|
|
|
262
262
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
263
263
|
*
|
|
264
264
|
* @since 1.18.0
|
|
265
|
-
* @category
|
|
265
|
+
* @category State predicates
|
|
266
266
|
*/
|
|
267
267
|
export declare const has: {
|
|
268
268
|
<V>(value: V): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -282,7 +282,7 @@ export declare const has: {
|
|
|
282
282
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
283
283
|
*
|
|
284
284
|
* @since 1.18.0
|
|
285
|
-
* @category
|
|
285
|
+
* @category State predicates
|
|
286
286
|
*/
|
|
287
287
|
export declare const some: {
|
|
288
288
|
<V>(predicate: (value: V) => boolean): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -302,7 +302,7 @@ export declare const some: {
|
|
|
302
302
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
303
303
|
*
|
|
304
304
|
* @since 1.18.0
|
|
305
|
-
* @category
|
|
305
|
+
* @category State predicates
|
|
306
306
|
*/
|
|
307
307
|
export declare const every: {
|
|
308
308
|
<V>(predicate: (value: V) => boolean): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -322,7 +322,7 @@ export declare const every: {
|
|
|
322
322
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
323
323
|
*
|
|
324
324
|
* @since 1.18.0
|
|
325
|
-
* @category
|
|
325
|
+
* @category State predicates
|
|
326
326
|
*/
|
|
327
327
|
export declare const isSubset: {
|
|
328
328
|
<V>(that: HashSet.HashSet<V>): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<boolean, E, R>;
|
|
@@ -342,7 +342,7 @@ export declare const isSubset: {
|
|
|
342
342
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
343
343
|
*
|
|
344
344
|
* @since 1.18.0
|
|
345
|
-
* @category
|
|
345
|
+
* @category Derived queries
|
|
346
346
|
*/
|
|
347
347
|
export declare const mapValues: {
|
|
348
348
|
<V, B>(f: (value: V) => B): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<HashSet.HashSet<B>, E, R>;
|
|
@@ -362,7 +362,7 @@ export declare const mapValues: {
|
|
|
362
362
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
363
363
|
*
|
|
364
364
|
* @since 1.18.0
|
|
365
|
-
* @category
|
|
365
|
+
* @category Derived queries
|
|
366
366
|
*/
|
|
367
367
|
export declare const filterValues: {
|
|
368
368
|
<V>(predicate: (value: V) => boolean): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<HashSet.HashSet<V>, E, R>;
|
|
@@ -382,7 +382,7 @@ export declare const filterValues: {
|
|
|
382
382
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
383
383
|
*
|
|
384
384
|
* @since 1.18.0
|
|
385
|
-
* @category
|
|
385
|
+
* @category Derived queries
|
|
386
386
|
*/
|
|
387
387
|
export declare const reduce: {
|
|
388
388
|
<V, B>(b: B, f: (b: B, value: V) => B): <E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<B, E, R>;
|
|
@@ -402,7 +402,7 @@ export declare const reduce: {
|
|
|
402
402
|
* observation follows later pushes and its observing Scope owns subscription cleanup.
|
|
403
403
|
*
|
|
404
404
|
* @since 1.18.0
|
|
405
|
-
* @category
|
|
405
|
+
* @category Derived queries
|
|
406
406
|
*/
|
|
407
407
|
export declare const values: <V, E, R>(ref: RefHashSet<V, E, R>) => RefSubject.Computed<Array<V>, E, R>;
|
|
408
408
|
//# sourceMappingURL=RefHashSet.d.ts.map
|