MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / safe_poprun_callbacks

Function safe_poprun_callbacks

webiojs/src/session.ts:43–50  ·  view source on GitHub ↗
(callbacks: (() => void)[], name = 'callback')

Source from the content-addressed store, hash-verified

41}
42
43function safe_poprun_callbacks(callbacks: (() => void)[], name = 'callback') {
44 while (callbacks.length)
45 try {
46 callbacks.pop().call(this);
47 } catch (e) {
48 console.log('Error in %s: %s', name, e);
49 }
50}
51
52export class WebSocketSession implements Session {
53 ws: WebSocket;

Callers 4

start_sessionMethod · 0.85
close_sessionMethod · 0.85
pullMethod · 0.85
close_sessionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…