Skip to content

Commit 80c94ee

Browse files
authored
docs: document viewDocument behavior (#889)
1 parent 64f9a9f commit 80c94ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/sponsor-only/viewer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ sidebar_class_name: larger-heading
77

88
The viewer module is designed to work with the files that the document picker module returns. It supports both `uri` and `bookmark` coming from `open` and `import` modes, also supports virtual files and long-term access to the files.
99

10-
The call to `viewDocument` returns a promise that resolves with `null` in case of success or rejects with error.
10+
The call to `viewDocument` returns a promise that resolves with `null` in case of success or rejects with an error. It is a "fire-and-forget" function, meaning that the promise resolves right after the package asks the OS to present the preview.
1111

1212
### How it works
1313

0 commit comments

Comments
 (0)