FairMQ
FairMQ copied to clipboard
Improve `bool ChangeState()` API
Based on user feedback it seems easy to miss a return value of false
(which usually means that the requested transition is illegal in the current state). Possible ideas to improve here were discussed:
- Add
[[nodiscard]]
- Throw instead (would also naturally lead to error state if not handled - which the user is in favor for)