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

Refactor/replace request, modules for each monitor #5

Open
wants to merge 17 commits into
base: klathmon
Choose a base branch
from

Conversation

PartyLich
Copy link

@PartyLich PartyLich commented Jul 28, 2020

Building on the lint config PR, each monitor (perf, stocks, weather) has been separated into its own module. Each module provides an async generator that can be used as a lazy stream, returning a fresh screen upon request. It's consistent across each, and allows us to keep the timing in a single location without needing to proliferate global variables any more than the code already was.

Tests are minimal, but a little better than no tests at all.

I'd be interested in hearing your thoughts. I don't know the full scope of where you're heading, so i really have no idea how compatible this direction is.

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.

1 participant