summaryrefslogtreecommitdiff
path: root/xmake/core/base/private/async_task.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/private/async_task.lua')
-rw-r--r--xmake/core/base/private/async_task.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/xmake/core/base/private/async_task.lua b/xmake/core/base/private/async_task.lua
index 1356072e5..a6116c5a0 100644
--- a/xmake/core/base/private/async_task.lua
+++ b/xmake/core/base/private/async_task.lua
@@ -135,6 +135,10 @@ function async_task.cp(srcpath, dstpath, opt)
return false, errors
end
+ -- TODO
+ assert(opt.detach)
+
+ -- post task
srcpath = path.absolute(tostring(srcpath))
dstpath = path.absolute(tostring(dstpath))
task_queue:push({kind = "cp", srcpath = srcpath, dstpath = dstpath})
@@ -150,6 +154,10 @@ function async_task.rm(filepath, opt)
return false, errors
end
+ -- TODO
+ assert(opt.detach)
+
+ -- post task
filepath = path.absolute(tostring(filepath))
task_queue:push({kind = "rm", filepath = filepath})
task_event:post()
@@ -164,6 +172,10 @@ function async_task.rmdir(dir, opt)
return false, errors
end
+ -- TODO
+ assert(opt.detach)
+
+ -- post task
dir = path.absolute(tostring(dir))
task_queue:push({kind = "rmdir", dir = dir})
task_event:post()