mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix: remove prints
This commit is contained in:
parent
5ae49d3c49
commit
f875741165
1 changed files with 0 additions and 3 deletions
|
@ -45,7 +45,6 @@ local function async_poller(generator, callback)
|
||||||
callback = callback,
|
callback = callback,
|
||||||
timer = vim.uv.new_timer(),
|
timer = vim.uv.new_timer(),
|
||||||
stop = function (this)
|
stop = function (this)
|
||||||
print("stopping async poller")
|
|
||||||
if this.promise ~= nil then
|
if this.promise ~= nil then
|
||||||
-- TODO the :abort() change still hasnt been merged, so check for its presence!
|
-- TODO the :abort() change still hasnt been merged, so check for its presence!
|
||||||
if this.promise.abort ~= nil then
|
if this.promise.abort ~= nil then
|
||||||
|
@ -57,10 +56,8 @@ local function async_poller(generator, callback)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
poller.timer:start(500, 500, function()
|
poller.timer:start(500, 500, function()
|
||||||
print("ticking poller")
|
|
||||||
if poller.promise == nil then poller.promise = poller.generator() end
|
if poller.promise == nil then poller.promise = poller.generator() end
|
||||||
if poller.promise.ready then
|
if poller.promise.ready then
|
||||||
print("spawning callback")
|
|
||||||
local res = poller.promise:await()
|
local res = poller.promise:await()
|
||||||
vim.schedule(function() poller.callback(res) end)
|
vim.schedule(function() poller.callback(res) end)
|
||||||
poller.promise = nil
|
poller.promise = nil
|
||||||
|
|
Loading…
Reference in a new issue