MCPcopy Index your code
hub / github.com/github/copilot-sdk / on_event

Function on_event

python/e2e/test_multi_client_e2e.py:194–196  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

192 future = loop.create_future()
193
194 def on_event(event):
195 if not future.done() and predicate(event):
196 future.set_result(event)
197
198 unsubscribe = session.on(on_event)
199

Callers

nothing calls this directly

Calls 1

predicateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…