summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-11-04 00:58:46 +0800
committerruki <[email protected]>2025-11-07 15:01:56 +0800
commit4e25c586bce57fa8bd75508d3a4519a28c2d0b7d (patch)
tree2d84b238bc64530f70384845304b06282bce68bb
parente4992d8f0537d3084be7799fdb7c7ed6c14930b5 (diff)
format code
-rw-r--r--xmake/core/base/private/async_task.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/base/private/async_task.lua b/xmake/core/base/private/async_task.lua
index 091a50b3e..930f7dc80 100644
--- a/xmake/core/base/private/async_task.lua
+++ b/xmake/core/base/private/async_task.lua
@@ -101,7 +101,7 @@ function async_task._loop(event, queue, mutex, is_stopped, is_diagnosis)
}
}
end
-
+
-- notify completion if event is provided
if cmd.event and cmd.result then
cmd.result:set({ok = ok, errors = errors, data = result_data})
@@ -204,7 +204,7 @@ function async_task.cp(srcpath, dstpath, opt)
if not is_detach then
cmd_event = thread.event()
cmd_result = thread.sharedata()
-
+
-- serialize thread objects for passing to worker thread
cmd.event_data = thread._serialize_object(cmd_event)
cmd.result_data = thread._serialize_object(cmd_result)
@@ -255,7 +255,7 @@ function async_task.rm(filepath, opt)
if not is_detach then
cmd_event = thread.event()
cmd_result = thread.sharedata()
-
+
-- serialize thread objects for passing to worker thread
cmd.event_data = thread._serialize_object(cmd_event)
cmd.result_data = thread._serialize_object(cmd_result)
@@ -306,7 +306,7 @@ function async_task.rmdir(dir, opt)
if not is_detach then
cmd_event = thread.event()
cmd_result = thread.sharedata()
-
+
-- serialize thread objects for passing to worker thread
cmd.event_data = thread._serialize_object(cmd_event)
cmd.result_data = thread._serialize_object(cmd_result)
@@ -351,7 +351,7 @@ function async_task.match(pattern, mode)
local cmd = {kind = "match", pattern = pattern, mode = mode}
local cmd_event = thread.event()
local cmd_result = thread.sharedata()
-
+
-- serialize thread objects for passing to worker thread
cmd.event_data = thread._serialize_object(cmd_event)
cmd.result_data = thread._serialize_object(cmd_result)