MCPcopy Create free account
hub / github.com/vercel/vercel / enqueueFsEvent

Method enqueueFsEvent

packages/cli/src/util/dev/server.ts:308–318  ·  view source on GitHub ↗
(type: string, path: string)

Source from the content-addressed store, hash-verified

306 }
307
308 enqueueFsEvent(type: string, path: string): void {
309 this.watchAggregationEvents.push({ type, path });
310 if (this.watchAggregationId === null) {
311 this.watchAggregationId = setTimeout(() => {
312 const events = this.watchAggregationEvents.slice();
313 this.watchAggregationEvents.length = 0;
314 this.watchAggregationId = null;
315 this.handleFilesystemEvents(events);
316 }, this.watchAggregationTimeout);
317 }
318 }
319
320 async handleFilesystemEvents(events: FSEvent[]): Promise<void> {
321 output.debug(`Filesystem watcher notified of ${events.length} events`);

Callers 1

_startMethod · 0.95

Calls 2

pushMethod · 0.65

Tested by

no test coverage detected