Commit graph

76 commits

Author SHA1 Message Date
He-Pin(kerr)
fc45e50b4e
feat: Add TraversalBuilder.getValuePresentedSource method for further optimization. (#1701) 2025-02-17 10:30:02 +08:00
He-Pin(kerr)
4252382d08
chore: Tweak withAttribuets in Flow (#1658) 2025-02-16 14:27:51 +08:00
He-Pin(kerr)
ba639f68a2
chore: Add the missing EmptySource case to TraversalBuilder (#1743) 2025-01-25 06:42:25 +08:00
scala-steward-asf[bot]
5b2aab6f7a
Update scalafmt-core to 3.8.4 (#1717)
* Update scalafmt-core to 3.8.4

* Reformat with scalafmt 3.8.4

Executed command: scalafmt --non-interactive

* Add 'Reformat with scalafmt 3.8.4' to .git-blame-ignore-revs

* remove postfixOps imports

Assuming we want to keep the default
`rewrite.avoidInfix.excludePostfix = false` - otherwise
we can drop this commit

---------

Co-authored-by: scala-steward-asf[bot] <147768647+scala-steward-asf[bot]@users.noreply.github.com>
Co-authored-by: Arnout Engelen <arnout@bzzt.net>
2025-01-18 10:36:38 +08:00
He-Pin(kerr)
640a9e9393
fix: avoid boxing in zipWithIndex and fix type signature in SubSource#zipWithIndex (#1669) 2025-01-07 21:18:45 +08:00
He-Pin(kerr)
8f6f97aa2d
chore: Add identity function. (#1671) 2025-01-07 01:00:38 +08:00
He-Pin(kerr)
2ee37454cb
chore: Test more rounds for unsafeDataVia keeping order. (#1680) 2025-01-06 00:06:49 +08:00
He-Pin(kerr)
c8ac6c06b1
chore: Make flatMapPrefix javadsl using java.util.List (#271) 2025-01-04 23:14:09 +08:00
He-Pin(kerr)
def84bf0c1
chore: fix failed in StreamConvertersSpec (#1655) 2024-12-31 21:33:21 +08:00
He-Pin(kerr)
7fef5b75f3
fix: avoid call finalizeStage more times than once. (#1650) 2024-12-31 20:17:07 +08:00
虎鸣
898b2936e1 feat: Add Sink.none operator 2024-12-28 19:12:21 +08:00
PJ Fanning
bbbcaccd2c
revert zipWithIndex changes (#1526)
* revert zipWithIndex changes

* scalafmt

* Update FlowZipWithIndexSpec.scala
2024-10-14 09:28:14 +01:00
João Costa
6ceb59ba26
Support primitives in Flow#collectType (#1490) 2024-09-20 21:05:18 +01:00
Matthew de Detrich
f548ea55ad Add wiretap/wiretapContext to FlowWithContext/SourceWithContext 2024-08-27 11:44:08 +02:00
Matthew de Detrich
302f38f148 Add alsoTo/alsoToContext to FlowWithContext/SourceWithContext 2024-08-23 15:56:48 +02:00
Matthew de Detrich
60c480aecd Add optionalVia and unsafeOptionalDataVia 2024-08-21 14:54:21 +02:00
He-Pin(kerr)
1d87923667
feat: Add isCompleted method to BoundedSourceQueue (#1374) 2024-06-18 19:19:02 +08:00
scala-steward-asf[bot]
fa1351b213 Reformat with scalafmt 3.8.2
Executed command: scalafmt --non-interactive
2024-06-16 07:56:40 +01:00
He-Pin(kerr)
2c3e9b43b6
chore: Add Source.fromArray operator for Java dsl. (#1248) 2024-04-30 22:52:39 +08:00
He-Pin(kerr)
68bd00659e
chore: Add Source.iterate operator. (#1244) 2024-04-03 01:10:19 +08:00
injae kim
9e54e4695b
Fix mustBeAbleToUseMapWithAutoCloseableResource broken test (#1241)
Closes #1229.
2024-03-30 13:20:31 +01:00
He-Pin(kerr)
c55837e2a8
chore: Add missing create method to javadsl Graph (#1230) 2024-03-24 19:57:42 +08:00
He-Pin(kerr)
55477ac6eb
Add missing java api for StreamTestKit (#1186)
* Add missing java api for StreamTestKit

* polish

* chore: Add more methods to streamKit

---------

Co-authored-by: naosense <pingao777@gmail.com>
2024-03-20 23:31:25 +08:00
He-Pin(kerr)
b4ff0fcabf
chore: Pull instead of throw exception in groupBy operator. (#1210)
When a sub stream is already closed, but the main stream is still continue, instead of throw a TooManySubStreamOpenException, just drop the current element and continue pulling.
2024-03-20 11:48:39 +08:00
Matthew de Detrich
689e30bbe9 Fix uncaught decider exception in Split with Supervision.resumingDecider 2024-03-19 16:41:51 +01:00
PJ Fanning
06cff559a4
some doc changes (#1177) 2024-03-09 13:57:01 +01:00
injae kim
7de1fb2edb
feat: Add AutoCloseable shortcut on mapWithResource (#1053)
* feat: Add AutoCloseable shortcut on mapWithResource

* Enhance test to check resource is closed after stream is completed

* Enhance comment

* Update doc

* Address comment

* Add resume, restart, stop strategy test

* Address comment

* Fix doc

* Fix typo
2024-02-01 18:47:57 +08:00
He-Pin(kerr)
5e00e6b8b7
chore: Remove more reflectiveCall. (#1084) 2024-01-30 23:51:30 +08:00
Luigi
abad72d869
feat: Add Sink.exists operator (#990)
* feat: +Flow.exists & Sink.exists

* chore: Update some doc and code.

* chore: Update method names in doc.

---------

Co-authored-by: He-Pin <hepin1989@gmail.com>
2024-01-30 14:31:23 +08:00
Laglangyue
f6da401abf
feat: Add Sink#forall operator (#989)
Co-authored-by: Jiafu Tang <jiafu.tang@qq.com>
2024-01-28 17:54:07 +08:00
He-Pin(kerr)
4c20580ff2
chore: Add Flow#flattenMerge operator. (#1045) 2024-01-27 18:03:23 +08:00
He-Pin(kerr)
2431eb4083
feat: Add Flow/Sink#foldWhile operator. (#1012) 2024-01-22 19:14:34 +08:00
He-Pin(kerr)
51b7ac519a
feat: Add collectFirst stream operator. (#984) 2024-01-20 19:39:22 +08:00
He-Pin(kerr)
b1ec854b8c
chore: Fix FlowCollectWhileSpec. #985 2024-01-20 05:01:57 +08:00
He-Pin(kerr)
19da73673d
feat: Add collectWhile operator. (#964) 2024-01-17 01:07:47 +08:00
He-Pin(kerr)
bd8ee25b80
feat: Add mapWithResource stream operator. (#931) 2024-01-16 18:29:05 +08:00
He-Pin
c44c0b7cbd chore: Sort imports on stream,stream-tests,stream-testkit 2024-01-16 16:10:53 +08:00
He-Pin(kerr)
d313eef0a9
chore: Add collect operator test for stream javadsl. (#963) 2024-01-16 10:13:29 +08:00
He-Pin(kerr)
df302b8ee6
feat: Add create method to PFBuilder. (#947) 2024-01-15 17:37:14 +08:00
kerr
cf70478201
feat: Add dimap operator to Flow. (#942) 2024-01-15 15:01:34 +08:00
PJ Fanning
8c688dad2e
use more of StandardCharsets (#952)
* use more of StandardCharsets

* scalafmt
2024-01-14 23:50:50 +01:00
He-Pin
447728f3c0 feat: Add flatten operator. 2024-01-14 20:24:06 +08:00
kerr
72f0a426b8
feat: Add support for for comprehensions. (#935) 2024-01-14 00:39:44 +08:00
He-Pin
ccce5c0426 feat: Optimize recoverWith stream operator for single source. 2024-01-10 02:57:44 +08:00
kerr
2b3818b55a
feat:Add onErrorComplete stream operator. (#913) 2024-01-08 02:30:52 +08:00
Matthew de Detrich
b818925edc Replace SubstreamCancelStrategy with SupervisionDecider for Split 2023-12-28 05:46:37 +01:00
He-Pin
c78e2d7610 chore: Add tests for not invoking onComplete twice for statefulMap operator. 2023-12-25 19:02:12 +08:00
He-Pin
781b1226e7 =str Optimize concat for javadsl.Source.empty. 2023-12-23 19:38:23 +08:00
He-Pin
873868c87b =str Add dedicated stream timeout exceptions for stream timeout operators. 2023-12-23 19:06:30 +08:00
He-Pin
3a1d31e841 =str Avoid subMaterialization when the provided recover source is empty. 2023-12-23 18:27:46 +08:00