Skip to content

Commit 926ae73

Browse files
author
huajie.liu
committed
add comment
1 parent 3733b2f commit 926ae73

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nbclient/client.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -772,8 +772,9 @@ async def _async_poll_for_reply(
772772
deadline = monotonic() + timeout
773773
new_timeout = float(timeout)
774774
else:
775-
# if we set new_timeout None value , and pass to the function of shell_channel.get_msg, will sometimes
776-
# blocking so need pass a timeout value, and reset the value when timeout value exhausted
775+
# if we call shell_channel.get_msg with None timeout value, sometimes will
776+
# block current execution forever so need pass a timeout value, so we
777+
# need give a default value and reset the value when timeout value exhausted
777778
deadline = monotonic() + 5
778779
new_timeout = float(5)
779780
error_on_timeout_execute_reply = None

0 commit comments

Comments
 (0)