-
Notifications
You must be signed in to change notification settings - Fork 205
Let users specify unique function keys using delay.MustRegister #261
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
Conversation
|
IIUC, we consider user-specified unique keys to be strictly better than the automagic uniqueness we provided in gen1, because filename changes causing disruptions in delayed funcs was unexpected and confusing. Is that correct? If so, the new UX should do the right thing by default, and we should make it hard to accidentally do the wrong thing. This change does neither, it only allows people to go out of their way to do the right thing. Did you consider just making a new function e.g. This is what I'd recommend because it
|
|
I like this suggestion; it could be built on top of what is already here (and the |
|
Re: naming. Probably something like |
|
agreed on naming. |
|
I added Register function. Is this more aligned with what you're discussing? I'm not sure if we'll need unique key prefix for this but I can also be missing something. Tests are failing due to b/200817325 but passing locally. |
|
LGTM. The likelihood of colliding the user specified key with the package-based key seems very, very low. Likely don't need the |
|
Agreed. Allowing the overlap is arguably a useful feature. It makes it possible to migrate from the |
|
LGTM. Just some minor things. |
zevdg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM pending outstanding comments. Will approve once they're all resolved.
|
Great PR! Thank you for making the world better by removing error prone magic in favor of explicitness. |
zevdg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
No description provided.