Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/pup/lib/common/ipc.ts>FileIPC#startWatching

Universal process manager built in Deno
Go to Latest
method FileIPC.prototype.startWatching
import { FileIPC } from "https://deno.land/x/pup@1.0.0-beta.32/lib/common/ipc.ts";

startWatching method initiates a file watcher on the filePath. When a file modification event occurs, it will debounce the call to extractMessages to ensure it doesn't get called more than once in a short amount of time (as specified by debounceTimeMs). The received messages from the extractMessages call are then added to the messageQueue to be consumed by the receiveData generator.