Skip to content

Commit 4fe002b

Browse files
committed
🗑️ Deprecate client_thread with a warning
There is no one single client_thread, this isn't used internally, and it's misleading to external users. However, adding `#reciever_thread` (or `#receiver_fiber`) might be useful.
1 parent 14ad314 commit 4fe002b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/net/imap.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,8 +734,6 @@ class IMAP < Protocol
734734
# Seconds to wait until an IDLE response is received.
735735
attr_reader :idle_response_timeout
736736

737-
attr_accessor :client_thread # :nodoc:
738-
739737
# The hostname this client connected to
740738
attr_reader :host
741739

@@ -768,6 +766,11 @@ class << self
768766
alias default_ssl_port default_tls_port
769767
end
770768

769+
def client_thread # :nodoc:
770+
warn "Net::IMAP#client_thread is deprecated and will be removed soon."
771+
@client_thread
772+
end
773+
771774
# Disconnects from the server.
772775
#
773776
# Related: #logout

0 commit comments

Comments
 (0)