Deno.FsWatcher.return - Deno documentation
method Deno.FsWatcher.return
FsWatcher.return(value?: any): Promise<IteratorResult<FsEvent>>
Deprecated

This will be removed in Deno 2.0. See the Deno 1.x to 2.x Migration Guide for migration instructions.

Stops watching the file system and closes the watcher resource.

Parameters

optional
value: any

Return Type

Promise<IteratorResult<FsEvent>>