Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Sep 25, 2024

This adds Net::IMAP#extract_responses, which behaves similarly to ActiveSupport's Array#extract! (which is a method I often wish we had in ruby core!).

Yields all of the unhandled #responses for a single response type. Removes and returns the responses for which the block returns a true value.

Extracting responses is synchronized with other threads. The lock is released before returning.

This is similar to ActiveSupport's Array#extract!.

Yields all of the unhandled #responses for a single response type.
Removes and returns the responses for which the block returns a true
value.

Extracting responses is synchronized with other threads.  The lock is
released before returning.
@nevans nevans merged commit 2813b4c into ruby:master Sep 26, 2024
@nevans nevans deleted the extract_responses branch September 26, 2024 13:04
nevans added a commit that referenced this pull request Oct 13, 2024
@nevans nevans added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant