Skip to content

docs: use single splat in key argument for limits_concurrency#749

Merged
rosa merged 1 commit into
rails:mainfrom
G-Rath:patch-1
Jul 17, 2026
Merged

docs: use single splat in key argument for limits_concurrency#749
rosa merged 1 commit into
rails:mainfrom
G-Rath:patch-1

Conversation

@G-Rath

@G-Rath G-Rath commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Using a double splat means that an error will be raised if more than two non-keyword arguments are passed to the job, whereas a single splat will eat additional arguments of either type.

I think this makes for a better doc since people copy-and-pasting are hopefully less likely to end up with a timebomb that could explode in production

@rosa rosa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you @G-Rath!

@rosa
rosa merged commit 4546345 into rails:main Jul 17, 2026
55 of 64 checks passed
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.

2 participants