#java #streamAPI #streamGatherers
https://foojay.io/today/introduction-to-intermediate-operations-modeler-stream-gatherers/
JEP 461, Stream Gatherers (Preview), has been completed for #JDK22.
This JEP proposes to enhance the #StreamAPI to support custom intermediate operations.
"This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations."
More on #InfoQ: https://bit.ly/3NzNbuP
After its review concluded, JEP 461, Stream Gatherers (Preview), has been completed for JDK 22. This JEP proposes to enhance the Stream API to support custom intermediate operations. "This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations."
> Stream api? 何かわからん
#StreamAPI のサーバー側はこんな #PHP コードでも機能するようです。
https://github.com/KEINOS/Dockerfile_of_HTTP-Stream-API/blob/master/src/router.php#L14-L27
上記は、接続すると 0-9 までをカウントアップするだけのストリーミング API です。
クライアント側の HTML はこんな感じ。
https://github.com/KEINOS/Dockerfile_of_HTTP-Stream-API/blob/master/client_local.html
何かのご参考になれば。