Improve sync API

This commit is contained in:
hrsh7th
2022-01-31 14:30:57 +09:00
parent 0d23640fb6
commit 55f04e49dc

View File

@@ -33,9 +33,11 @@ cmp.mapping = require('cmp.config.mapping')
cmp.sync = function(callback) cmp.sync = function(callback)
return function(...) return function(...)
cmp.core.filter:sync(1000) cmp.core.filter:sync(1000)
if callback then
return callback(...) return callback(...)
end end
end end
end
---Suspend completion. ---Suspend completion.
cmp.suspend = function() cmp.suspend = function()