slawlor / ractor_actors

Common utility actors built with Ractor
MIT License
17 stars 3 forks source link

Adding a "broadcast" actor #12

Closed slawlor closed 1 year ago

slawlor commented 1 year ago

A broadcast actor is responsible for broadcasting messages to downstream targets. This PR adds a broadcast actor and tests around its functionality.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 89.12% and project coverage change: +3.43% :tada:

Comparison is base (ef5356c) 67.05% compared to head (c6101a4) 70.48%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12 +/- ## ========================================== + Coverage 67.05% 70.48% +3.43% ========================================== Files 14 16 +2 Lines 1296 1535 +239 ========================================== + Hits 869 1082 +213 - Misses 427 453 +26 ``` | [Files Changed](https://app.codecov.io/gh/slawlor/ractor_actors/pull/12?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor) | Coverage Δ | | |---|---|---| | [ractor\_actors/src/sync/broadcast/mod.rs](https://app.codecov.io/gh/slawlor/ractor_actors/pull/12?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor#diff-cmFjdG9yX2FjdG9ycy9zcmMvc3luYy9icm9hZGNhc3QvbW9kLnJz) | `80.26% <80.26%> (ø)` | | | [ractor\_actors/src/sync/broadcast/tests.rs](https://app.codecov.io/gh/slawlor/ractor_actors/pull/12?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor#diff-cmFjdG9yX2FjdG9ycy9zcmMvc3luYy9icm9hZGNhc3QvdGVzdHMucnM=) | `93.25% <93.25%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.

:loudspeaker: Have feedback on the report? Share it here.