Skip to content

Implement exception: false argument for Queue push & pop#6299

Closed
casperisfine wants to merge 1 commit intoruby:masterfrom
Shopify:queue-exception-false
Closed

Implement exception: false argument for Queue push & pop#6299
casperisfine wants to merge 1 commit intoruby:masterfrom
Shopify:queue-exception-false

Conversation

@casperisfine
Copy link
Copy Markdown
Contributor

Ref: https://bugs.ruby-lang.org/issues/18982

[Feature #18982]

In many cases, especially when using the nonblock mode, it's much simpler and more efficient to check the return value rather than to rescue an exception.

[Feature #18982]

In many cases, especially when using the nonblock mode, it's
much simpler and more efficient to check the return value
rather than to rescue an exception.
@casperisfine casperisfine force-pushed the queue-exception-false branch from 1dacfa2 to 183fe1e Compare August 29, 2022 14:01
@casperisfine
Copy link
Copy Markdown
Contributor Author

We decided it wasn't necessary.

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