Reason behind while (true) break #1710
Unanswered
ibrahimabtula
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
The while loop is there in case an exception occurs while trying to fetch. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking at the ImapIdleExample and I cant understand the reason behind the following code
I noticed it's like common pattern throughout the code.
While will be run only once to fetch and then break will break the loop.
Can't we fetch messages in a try catch without the while loop? What is the reason behind it ?
Beta Was this translation helpful? Give feedback.
All reactions