There are four possibilities:
- One sender, one receiver
- One sender, multiple receivers
- Multiple senders, one receiver
- Multiple senders, multiple receivers
We have already supported 1 and 2. In both cases, the branching state is reasonable. Therefore, we choose the union as the base.
The next plan is to support 3 and 4. When there are multiple senders, branching states are definitely not possible. Therefore, choosing a struct as the base may be a better choice.
There are four possibilities:
We have already supported 1 and 2. In both cases, the branching state is reasonable. Therefore, we choose the
unionas the base.The next plan is to support 3 and 4. When there are multiple senders, branching states are definitely not possible. Therefore, choosing a
structas the base may be a better choice.