Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Use asyncio.Event for handling state changes #11

Open
rapsealk opened this issue Sep 28, 2022 · 0 comments
Open

Use asyncio.Event for handling state changes #11

rapsealk opened this issue Sep 28, 2022 · 0 comments
Labels
refactor Rewrite something in better way while keeping the same functionality

Comments

@rapsealk
Copy link
Member

Python's asyncio provides several primitive features for synchronization. Among them, the one currently attracts me is asyncio.Event.
There are continuous state changes in Raft and we have to keep eyes on the changes for post-processing. We are using a loop in the current version, but it seems that there could be a better way to implement this process if we utilize asyncio.Event.

@rapsealk rapsealk added the refactor Rewrite something in better way while keeping the same functionality label Sep 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Rewrite something in better way while keeping the same functionality
Projects
None yet
Development

No branches or pull requests

1 participant