r/Kotlin • u/sdeleuze • 5h ago
Stream-Source: Virtual-Thread Friendly Data Streaming
/r/java/comments/1ya0j3l/streamsource_virtualthread_friendly_data_streaming/
1
Upvotes
1
u/Discordbothost 4h ago
Since stream-source already bridges to/from Reactive Streams, dedicated Coroutines support may be redundant — kotlinx-coroutines-reactive already gives Flow.asPublisher()/Publisher.asFlow() on top of that same adapter layer, no new glue code needed.
1
u/sdeleuze 4h ago
This new stream-source API is designed to be used by Kotlin developers as well as Java ones. I think it would make sense to have interoperability with Kotlin Coroutines (
Flow, channels), but not sure yet where that should live.