https://kotlinlang.org logo
Title
n

nwh

07/11/2018, 10:50 PM
I have a process that has multiple steps. Think: fetching data from the database, doing some lookups, asking for input, and then performing some actions. Any of these actions could result in the entire process being cancelled (ideally with a specific error), but I also want to be able to relay the progress back. Is an actor a good use case for this?
l

louiscad

07/12/2018, 7:50 AM
@nwh a
SendChannel
parameter of a custom enum or sealed class may do the job. There are other ways to do this with a custom class also in place of
SendChannel