"unsafe" as postfix (#446)

This commit is contained in:
Giulio Canti
2025-08-29 11:07:51 +02:00
committed by GitHub
parent 5159b5558a
commit 0772e987f6
145 changed files with 1367 additions and 1400 deletions
@@ -545,13 +545,13 @@ const watchNode = (path: string) =>
return
}
case "change": {
Queue.unsafeOffer(queue, FileSystem.WatchEventUpdate({ path }))
Queue.offerUnsafe(queue, FileSystem.WatchEventUpdate({ path }))
return
}
}
})
watcher.on("error", (error) => {
Queue.unsafeDone(
Queue.doneUnsafe(
queue,
Exit.fail(
new Error.SystemError({
@@ -565,7 +565,7 @@ const watchNode = (path: string) =>
)
})
watcher.on("close", () => {
Queue.unsafeEnd(queue)
Queue.endUnsafe(queue)
})
return watcher
}),