MCPcopy Create free account
hub / github.com/Snapchat/Valdi / with

Method with

valdi/vscode_debugger/src/adapter/threads.ts:108–114  ·  view source on GitHub ↗
(callback: (obj: T) => Return)

Source from the content-addressed store, hash-verified

106 }
107
108 with<Return>(callback: (obj: T) => Return): Return | Promise<Return> {
109 if (this._dapDeferred.hasSettled()) {
110 return callback(this._obj);
111 } else {
112 return this._dapDeferred.promise.then(obj => callback(obj));
113 }
114 }
115}
116
117export class Thread implements IVariableStoreDelegate {

Callers 8

promptToOpenFunction · 0.80
_initializeMethod · 0.80
resultMethod · 0.80
disposeMethod · 0.80
createSourceMethod · 0.80
_onThreadPausedMethod · 0.80
_onThreadResumedMethod · 0.80

Calls 3

callbackFunction · 0.85
hasSettledMethod · 0.80
thenMethod · 0.65

Tested by

no test coverage detected