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
Labels
refactor
Rewrite something in better way while keeping the same functionality
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 utilizeasyncio.Event
.The text was updated successfully, but these errors were encountered: