You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -438,6 +438,7 @@ How to use the [assert API](doc/assert.md) to write unit tests while using RxGo.
438
438
*[Buffer](doc/buffer.md) — periodically gather items from an Observable into bundles and emit these bundles rather than emitting the items one at a time
439
439
*[FlatMap](doc/flatmap.md) — transform the items emitted by an Observable into Observables, then flatten the emissions from those into a single Observable
440
440
*[GroupBy](doc/groupby.md) — divide an Observable into a set of Observables that each emit a different group of items from the original Observable, organized by key
441
+
*[GroupByDynamic](doc/groupbydynamic.md) — divide an Observable into a dynamic set of Observables that each emit GroupedObservables from the original Observable, organized by key
441
442
*[Map](doc/map.md) — transform the items emitted by an Observable by applying a function to each item
442
443
*[Marshal](doc/marshal.md) — transform the items emitted by an Observable by applying a marshalling function to each item
443
444
*[Scan](doc/scan.md) — apply a function to each item emitted by an Observable, sequentially, and emit each successive value
Copy file name to clipboardexpand all lines: observable_operator.go
+54-4
Original file line number
Diff line number
Diff line change
@@ -1320,6 +1320,57 @@ func (o *ObservableImpl) GroupBy(length int, distribution func(Item) int, opts .
1320
1320
}
1321
1321
}
1322
1322
1323
+
// GroupedObservable is the observable type emitted by the GroupByDynamic operator.
1324
+
typeGroupedObservablestruct {
1325
+
Observable
1326
+
// Key is the distribution key
1327
+
Keyint
1328
+
}
1329
+
1330
+
// GroupByDynamic divides an Observable into a dynamic set of Observables that each emit GroupedObservable from the original Observable, organized by key.
0 commit comments