time: create ticker with instant first tick - rebooted #41885
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
I have the same issue as #17601, but the issue was closed and locked with this reason:
However, "call the function once at the start" does not work when you are not in control of when the function is called.
Consider this clumsy implementation of a rate limiting in
rateLimited
, vs. the much more concise and elegant one inrateLimitedImmediate
:Just that the nice implementation in
rateLimited
cannot start immediately.I am not in control of calling the function myself, the library client does that.
So I second the need for a stdlib solution like proposed in the original issue, and hope the issue can be re-opened (or discussed here).
The text was updated successfully, but these errors were encountered: