Suppose there are 4 BroadcastReceivers
and there is an application sending Ordered Broadcast
to all of them. All four broadcast receivers are in their own separate processes. If something goes wrong in between(e.g something fails in one of the in between onReceive
methods) how can atomicity be ensured for ordered android broadcasts?
Does it depends on use case or there is a general mechanism that can be employed?
Update
What Atomicity
means exactly in case of ordered broadcast, I can only guess. For example if series of transactions are being performed in receivers, is it possible to revert all transactions upon any failure in between?
Does it even make sense to talk about Atomicity
in this context?