Skip to content

Commit 12f031c

Browse files
authored
docs: note delayed delivery of file system change events (#659)
1 parent 2ffc63e commit 12f031c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • apps/web/src/app/(docs)/docs/filesystem/watch

apps/web/src/app/(docs)/docs/filesystem/watch/page.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
You can watch a directory for changes using the `files.watchDir()` method in JavaScript and `files.watch_dir()` method in Python.
44

5+
<Note>
6+
Since events are tracked asynchronously, their delivery may be delayed.
7+
It's recommended not to collect or close watcher immediately after making a change.
8+
</Note>
9+
510
<CodeGroup>
611
```js
712
import { Sandbox, FilesystemEventType } from '@e2b/code-interpreter'

0 commit comments

Comments
 (0)