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

SchedulerBase polish, typings, test #361

Merged
merged 4 commits into from
May 4, 2019

Conversation

erikkemperman
Copy link
Collaborator

I am once again trying to separate moderately sized bits off a branch with way too many changes in it...

@coveralls
Copy link

coveralls commented Apr 27, 2019

Coverage Status

Coverage increased (+0.1%) to 90.319% when pulling 6b1a628 on erikkemperman:scheduler-base into be24259 on ReactiveX:master.

return default_now()

@abstractmethod
def schedule(self,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm just curious, is it worth to re-declare schedule, schedule_relative & schedule_absolute as abstract methods while these are already declared in typing.Scheduler ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, maybe not strictly necessary... Although it might help to keep the generated docs and help() complete.

I guess I included this mainly because of an idea I have that I’m playing around with, which would simplify all of the classes that extend SchedulerBase by putting some often-repeated logic (schedule methods being defined in terms of one another) in the base class.

Having these here at this point would make that second step a lot easier / readable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

cool 👍

@erikkemperman
Copy link
Collaborator Author

Ugh I just noticed I accidentally included a change in virtualtime scheduler here... It should have been in that other PR.

Sorry about that, I’ve been juggling branches and commits and this fell through. Please ignore that part, I’ll transplant it later.

@erikkemperman
Copy link
Collaborator Author

FYI, I removed the bit which was not supposed to be in this PR, and I added a sentence about to_timedelta being relative to the epoch (1970-01-01) as suggested by @jcafhe

Copy link
Collaborator

@dbrattli dbrattli left a comment

Choose a reason for hiding this comment

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

Nice work!

@erikkemperman erikkemperman merged commit f9ac3c8 into ReactiveX:master May 4, 2019
@erikkemperman
Copy link
Collaborator Author

Thanks for review!

@erikkemperman erikkemperman deleted the scheduler-base branch May 4, 2019 11:35
@lock
Copy link

lock bot commented May 5, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants