c4d653ee7275f364b82d539bc58a9793248374eb,lib/streamlit/ScriptRunner.py,ScriptRunner,maybe_handle_execution_control_request,#ScriptRunner#,255
Before Change
// This method gets called from inside the script"s execution context.
def maybe_handle_execution_control_request(self):
if self._state_change_requested:
LOGGER.debug("Received execution control request: %s", self._state)
if self._state == State.STOP_REQUESTED:
raise StopException()
elif self._state == State.RERUN_REQUESTED:
After Change
self._event_queue.enqueue(ScriptEvent.SHUTDOWN)
def maybe_handle_execution_control_request(self):
if self._run_loop_thread != threading.current_thread():
// We can only handle execution_control_request if we"re on the
// script execution thread. However, it"s possible for deltas to
// be enqueued (and, therefore, for this function to be called)
// in separate threads, so we check for that here.
return
// Pop the next event from our queue. Don"t block if there"s no event
event, event_data = self._event_queue.dequeue_nowait()
if event is None:
return
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: streamlit/streamlit
Commit Name: c4d653ee7275f364b82d539bc58a9793248374eb
Time: 2019-06-05
Author: tconkling@gmail.com
File Name: lib/streamlit/ScriptRunner.py
Class Name: ScriptRunner
Method Name: maybe_handle_execution_control_request
Project Name: home-assistant/home-assistant
Commit Name: 80c187f8ea188ea3e63fd8e093ecf4284e1916c2
Time: 2017-06-26
Author: per.j.sandstrom@gmail.com
File Name: homeassistant/components/lock/verisure.py
Class Name: VerisureDoorlock
Method Name: lock
Project Name: home-assistant/home-assistant
Commit Name: 80c187f8ea188ea3e63fd8e093ecf4284e1916c2
Time: 2017-06-26
Author: per.j.sandstrom@gmail.com
File Name: homeassistant/components/lock/verisure.py
Class Name: VerisureDoorlock
Method Name: unlock