3956d5c6c21dc4b4faec72aff77f0e6b7d85dd45,bokeh/client/connection.py,ClientConnection,_send_message_wait_for_reply,#ClientConnection#Any#,121
Before Change
def _send_message_wait_for_reply(self, message):
waiter = self.WAITING_FOR_REPLY(message.header["msgid"])
self._state = waiter
self.send_message(message)
def have_reply_or_disconnected():
return self._state != waiter or waiter.reply is not None
self._loop_until(have_reply_or_disconnected)
return waiter.reply
After Change
send_result = []
def message_sent(future):
send_result.append(future)
self._loop.add_future(self.send_message(message), message_sent)
def have_send_result_or_disconnected():
return len(send_result) > 0 or self._state != waiter
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: bokeh/bokeh
Commit Name: 3956d5c6c21dc4b4faec72aff77f0e6b7d85dd45
Time: 2015-11-16
Author: hp@pobox.com
File Name: bokeh/client/connection.py
Class Name: ClientConnection
Method Name: _send_message_wait_for_reply
Project Name: bokeh/bokeh
Commit Name: 3956d5c6c21dc4b4faec72aff77f0e6b7d85dd45
Time: 2015-11-16
Author: hp@pobox.com
File Name: bokeh/server/views/ws.py
Class Name: WSHandler
Method Name: open
Project Name: deepgram/kur
Commit Name: 0b67d04fb5301987331bcd9a3053f00e917b53b3
Time: 2017-02-14
Author: ajsyp@syptech.net
File Name: kur/model/hooks/slack_hook.py
Class Name: SlackHook
Method Name: notify