MCPcopy Index your code
hub / github.com/bugy/script-server / wait_observable_close_notification

Function wait_observable_close_notification

src/tests/test_utils.py:454–457  ·  view source on GitHub ↗
(observable, timeout)

Source from the content-addressed store, hash-verified

452
453
454def wait_observable_close_notification(observable, timeout):
455 close_condition = threading.Event()
456 observable.subscribe_on_close(lambda: close_condition.set())
457 close_condition.wait(timeout)
458
459
460def mock_request_handler(*, arguments: dict = None, method='GET', headers=None, previous_request=None):

Callers 2

test_logging_valuesMethod · 0.90
test_exit_codeMethod · 0.90

Calls 2

subscribe_on_closeMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected