MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / exec

Method exec

test/conductor/async-scope.ts:49–57  ·  view source on GitHub ↗
(callable: (messages: string[]) => Promise<T>, description?: string)

Source from the content-addressed store, hash-verified

47 }
48
49 async exec<T>(callable: (messages: string[]) => Promise<T>, description?: string) {
50 const messages = this.push(description);
51 try {
52 const result = await callable(messages);
53 return result;
54 } finally {
55 this.pop();
56 }
57 }
58
59 execSync<T>(callable: (messages: string[]) => T, description?: string) {
60 const messages = this.push(description);

Callers 15

typeIntoConsoleFunction · 0.95
getRemoteBaseFunction · 0.80
extractKeyValueMethod · 0.80
processTokenMethod · 0.80
consumeTokenMethod · 0.80
consumeQuotedStringMethod · 0.80
consumeExtraneousMethod · 0.80
splitLineAndColumnMethod · 0.80
scriptTagIsJavaScriptFunction · 0.80

Calls 2

pushMethod · 0.95
popMethod · 0.95

Tested by 1

parseTokensFunction · 0.64