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

Function eager

valdi/vscode_debugger/src/adapter/asyncStackPolicy.ts:26–31  ·  view source on GitHub ↗
(maxDepth: number)

Source from the content-addressed store, hash-verified

24const disabled: IAsyncStackPolicy = { connect: async () => noOpDisposable };
25
26const eager = (maxDepth: number): IAsyncStackPolicy => ({
27 async connect(cdp) {
28 await cdp.Debugger.setAsyncCallStackDepth({ maxDepth });
29 return noOpDisposable;
30 },
31});
32
33const onceBp = (maxDepth: number): IAsyncStackPolicy => {
34 const onEnable: EventEmitter<void> | undefined = new EventEmitter<void>();

Callers 2

getAsyncStackPolicyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected