Skip to content

Return bool value from process_messages indicating if something was processed#8

Merged
artpaul merged 1 commit intoartpaul:masterfrom
nikola-sh:nikola-sh/return_value_for_process_messages
Apr 10, 2025
Merged

Return bool value from process_messages indicating if something was processed#8
artpaul merged 1 commit intoartpaul:masterfrom
nikola-sh:nikola-sh/return_value_for_process_messages

Conversation

@nikola-sh
Copy link
Contributor

Let's return bool value from process_messages indicating if something was processed or not.
It is useful to organize actor unit tests in the following way:

  • bind all actors to a thread
  • send messages
  • perform processing loop while there is something to process: while (process_messages());
  • check results

@artpaul artpaul merged commit 3f90bfa into artpaul:master Apr 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants