Trey
09/06/2022, 4:45 PMCasey Brooks
09/06/2022, 4:48 PMactor { }
API) is basically just Channels
.Trey
09/06/2022, 4:50 PMCasey Brooks
09/06/2022, 5:03 PMchannel.receiveAsFlow()
.
The Actor pattern, by its nature, needs to be able to send data from one actor to another, and you’d need a Channel to send that data into. Within each individual actor, you could receiveAsFlow()
and do more advanced filtering/processing of each individual message with the nicer Flow API if needed. But Flows were never designed to replace Channels, and in fact many of the Flow operators and other internal mechanisms are built in top of ChannelsTrey
09/06/2022, 5:15 PMFrancesc
09/06/2022, 5:23 PMCasey Brooks
09/06/2022, 5:25 PMCasey Brooks
09/06/2022, 5:27 PMSharedFlow
is intended to replace BroadcastChannel
.Casey Brooks
09/06/2022, 5:32 PMTrey
09/06/2022, 6:28 PM