Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extern.task: replace GLib event loop with asyncio event loop #561

Merged
merged 2 commits into from
Jul 16, 2022

Conversation

bmwalters
Copy link
Contributor

@bmwalters bmwalters commented May 24, 2022

Hello! This program is awesome.

This change works towards #5 by replacing the GLib MainLoop that backs task.py with asyncio's event loop. The interfaces are extremely similar and this removes a big dependency.

I'm not sure what should be done about #5 after this given that quite a bit of whipper code uses the Task interface. Maybe task.py and asyncsub.py can just be merged into whipper/common and later refactored?


I tested this by going through the drive setup process from scratch (whipper drive analyze and whipper offset find), ripping an album, then running whipper image verify. I ensured progress calculation worked and no commands got stuck.

Signed-off-by: Bradley Walters <oss@walters.app>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💖 Thanks for opening your first pull request here! 💖

Signed-off-by: Bradley Walters <oss@walters.app>
@JoeLametta JoeLametta merged commit df48f1c into whipper-team:develop Jul 16, 2022
@JoeLametta
Copy link
Collaborator

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants