This PR fixes a regression that caused the state machine update notification streams to keep running in the background even when all receivers have been dropped.
The state machine update notification stream has been reimplemented such that only one background task is ever spawned whenever the function is called.
This PR fixes a regression that caused the state machine update notification streams to keep running in the background even when all receivers have been dropped.
The state machine update notification stream has been reimplemented such that only one background task is ever spawned whenever the function is called.