uli
12/06/2018, 5:21 PMlaunch(ioContext) {
if (!mutableList.contains(something)) {
modifyActor.send(Add(something))
}
}
launch(ioContext) {
// Actor has not yet processed the 'Add' message, because it was busy processing other requests
if (mutableList.contains(something)) {
//We will not get here
modifyActor.send(Remove(something))
}
}
zokipirlo
12/07/2018, 7:18 AM