From 61cf7a937ef4d056226a9428301b1dd5316050bf Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 10 Feb 2024 11:35:44 +0800 Subject: [PATCH] docs: add a note about the sync function in the async context --- docs/plugins/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/plugins/overview.md b/docs/plugins/overview.md index 829cb021..22d6c51f 100644 --- a/docs/plugins/overview.md +++ b/docs/plugins/overview.md @@ -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