MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / closer

Method closer

src/kernels/raw/session/rawSocket.node.ts:72–78  ·  view source on GitHub ↗
(closable: { close(): void })

Source from the content-addressed store, hash-verified

70 // When the socket is completed / disposed, close all the event
71 // listeners and shutdown the socket
72 const closer = (closable: { close(): void }) => {
73 try {
74 closable.close();
75 } catch (ex) {
76 logger.error(`Error during socket shutdown`, ex);
77 }
78 };
79 closer(this.channels.control);
80 closer(this.channels.iopub);
81 closer(this.channels.shell);

Callers

nothing calls this directly

Calls 2

closeMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected