vaskir
06/11/2020, 1:38 PMactor { }
Casey Brooks
06/11/2020, 1:40 PMactor { }
is deprecated, so I don’t really want to get bought into an API that is not being supported and may be removedZach Klippenstein (he/him) [MOD]
06/11/2020, 1:55 PMactor
would be insufficient, but if you just want to serialized concurrent access to mutable state it's really easy to just make an inbox channel and launch a coroutine to read from it and process messages (basically all actor
does anyway). All the pieces for that should be available for multiplatform, I'm surprised actor
isn't.Casey Brooks
06/11/2020, 2:19 PMZach Klippenstein (he/him) [MOD]
06/11/2020, 2:29 PMevents.transform { … }.stateIn(scope)
, fact that there’s a single transformer and inbox is implied by the stateIn
, but it’s less obvious. Also, stateIn
doesn’t exist yet 😅henrikhorbovyi
06/11/2020, 3:54 PMactor
will be deprecated in the future yeah? 🤔bdawg.io
06/11/2020, 4:38 PMhenrikhorbovyi
06/11/2020, 5:05 PM