slawlor / ractor

Rust actor framework
MIT License
1.52k stars 73 forks source link

Add support for draining an actor's message queue. #268

Closed slawlor closed 1 month ago

slawlor commented 1 month ago

This is done by multiplexing the low-pri messaging port and when an internal draining message is received, we've emptied the actor's queue and can shut down.

Test coverage added.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 91.54930% with 6 lines in your changes missing coverage. Please review.

Project coverage is 79.95%. Comparing base (fde7115) to head (7938299). Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
ractor/src/actor/actor_properties.rs 84.37% 5 Missing :warning:
ractor/src/actor/tests/mod.rs 97.05% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #268 +/- ## ========================================== + Coverage 79.90% 79.95% +0.05% ========================================== Files 60 60 Lines 10211 10273 +62 ========================================== + Hits 8159 8214 +55 - Misses 2052 2059 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.