MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / bufferEvents

Method bufferEvents

contributes/src/vs/base/common/event.ts:816–823  ·  view source on GitHub ↗
(fn: () => R)

Source from the content-addressed store, hash-verified

814 }
815
816 bufferEvents<R = void>(fn: () => R): R {
817 const buffer: Array<() => R> = [];
818 this.buffers.push(buffer);
819 const r = fn();
820 this.buffers.pop();
821 buffer.forEach(flush => flush());
822 return r;
823 }
824}
825
826/**

Callers

nothing calls this directly

Calls 5

fnFunction · 0.70
flushFunction · 0.70
forEachMethod · 0.65
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected