Join Slack
Are `Flow`s safe to pass between threads in Kotlin/native?
# multiplatform
s
spierce7
03/19/2020, 2:17 AM
Are `Flow`s safe to pass between threads in Kotlin/native?
e
elizarov
03/19/2020, 9:24 AM
It depends. By itself, the flow is stateless thus can be frozen and shared. But if you reference some mutable state from inside of the flow, then you cannot.
9
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by