Skip to content

Commit

Permalink
docs: add a note about the sync function in the async context
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Feb 10, 2024
1 parent 352ec60 commit 61cf7a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/plugins/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ When a plugin is executed asynchronously, an isolated async context is created f

In this context, you can use all the async functions supported by Yazi, and it operates concurrently with the main thread, ensuring that the main thread is not blocked.

You can also obtain a small amount of app data from the sync context by calling a "sync function":
You can also obtain a small amount of app data from the sync context by calling a "sync function" (Needs the latest main branch at the moment):

```lua
-- ~/.config/yazi/plugins/my-async-plugin.yazi/init.lua
Expand Down

0 comments on commit 61cf7a9

Please sign in to comment.