Improve sync API
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user