mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-01 03:05:36 +08:00
"unsafe" as postfix (#446)
This commit is contained in:
@@ -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
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user