Skip to content

Commit 5bddf68

Browse files
committed
📖 Document that #disconnect joins receiver thread
1 parent 17b6463 commit 5bddf68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/net/imap.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,9 @@ def tls_verified?; @tls_verified end
11311131

11321132
# Disconnects from the server.
11331133
#
1134+
# Waits for receiver thread to close before returning. Slow or stuck
1135+
# response handlers can cause #disconnect to hang until they complete.
1136+
#
11341137
# Related: #logout, #logout!
11351138
def disconnect
11361139
in_logout_state = try_state_logout?

0 commit comments

Comments
 (0)