Skip to content

[Messenger] Add DelayStamp::delayFor() and DelayStamp::delayUntil() #38484

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

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Oct 8, 2020

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
Tickets Fix #38141
License MIT
Doc PR

This PR will revert the work by @Toflar in #38141. He added some helper methods and I want to add a generic factory method that adds a DateInterval.

This PR will also close #38480 and fix #38459. It is also related to a comment in #36512 (comment) that was liked by a few people.

Maybe adding both DelayStamp::delayFor(\DateInterval) and DelayStamp::delayUntil(\DateTimeInterface) is overkill. But this covers all the bases and I hope that it will be the last change to this small class.

@fabpot fabpot force-pushed the messenger-delay-stamp branch from ce32b28 to c5de1eb Compare October 8, 2020 16:19
@fabpot
Copy link
Member

fabpot commented Oct 8, 2020

Thank you @Nyholm.

@Nyholm
Copy link
Member Author

Nyholm commented Oct 8, 2020

Thank you for the reviews and merge.

@Nyholm Nyholm deleted the messenger-delay-stamp branch October 8, 2020 16:20
@fabpot fabpot mentioned this pull request Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Messenger] Implement an ExecuteAfterDateStamp
4 participants