The missing part in ResultsCounter is to actually send the updated value using the channel. Let's update the actor to do so:
private val actor = actor<Void?>(context) {
for (msg in channel) {
counter++
notifications.send(counter)
}
}
The missing part in ResultsCounter is to actually send the updated value using the channel. Let's update the actor to do so:
private val actor = actor<Void?>(context) {
for (msg in channel) {
counter++
notifications.send(counter)
}
}
3.133.128.145