### Description of the task Binary context managers should use the [`Event` synchronization primitive](https://docs.python.org/3/library/threading.html#event-objects) instead of a bool flag to stop a thread. See https://stackoverflow.com/questions/43879149/stop-a-thread-flag-vs-event ### Acceptance criteria <!-- Checkbox list that outlines what needs to be done in order for this task to be considered "complete". Specify any implementation requirements such as data structures, functionalities, testing requirements, documentation, etc. --> - [ ] ### Blocked By <!-- List all other issues that need to be completed before this one, ex: - #123 - #374 -->