Skip to content

Modified monitor to be able to accept and pass along options to threads #131

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

JerrettDavis
Copy link

Previously, there was no way to pass custom fetching settings for monitoring. This update allows you to pass options to comment monitoring to suit it to your needs (e.g. bumping the limit from 25 to 100). It supports all of the settings the various GetX methods implement.

To make this change, I modified the internal Monitors class to utilize a TheadWrapper class instead of the Thread class directly. This allows the inheriting classes the pass an object to the CreateMonitoringThread method to pass along options to various worker methods.

So far, I've only implemented monitoring options for comments.

Previously, there was no way to pass custom fetching settings for comment monitoring. This update allows you to pass options to comment monitoring to suit it to your needs (e.g. bumping the limit from 25 to 100).
@JerrettDavis
Copy link
Author

You can see this change in action over in my RedditResponderBot repository.

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