simon.vergauwen
12/10/2020, 12:47 PMstojan
12/11/2020, 9:52 AMStream is also deprecated? what is the reasoning behind that?simon.vergauwen
12/11/2020, 11:04 AMFlow is already included in the dependency. So Stream becomes a duplicated data-type.
Our reasoning was that if we included the same operators to Flow as we have for Stream or were planning to build for Stream there is no strong reason anymore to build and maintain Stream. It's a very complex data type to develop and maintain and thus also very time-consuming/expensive. & getting contributions to Arrow Fx is hard.
Some APIs we plan to add to Flow, tickets will be created soon. parZipN, parEffectMa, parEffectMapUnordered, parMapN, merge, concurrently, interruption etcsimon.vergauwen
12/11/2020, 11:05 AMstojan
12/11/2020, 12:58 PMFlow ?simon.vergauwen
12/11/2020, 1:10 PMResource and bracket directly in flow or channelFlow. channelFlow if you want to emit from use from a different context such as withContext(<http://Dispatchers.IO|Dispatchers.IO>).simon.vergauwen
12/11/2020, 1:12 PMStream (FS2) the resource is scoped to the consumer lifecycle, and implicitly closed upon some of the intermediately used operators. In Flow the resource is scoped to itself, when it exit from use, or when the Flow is cancelled or errors.simon.vergauwen
12/11/2020, 1:12 PMstojan
12/11/2020, 2:32 PMsimon.vergauwen
12/11/2020, 2:44 PM