1 2 3 4 5
return function (val, res) local handle handle = vim.loop.new_async(function() _G[res] = require'leftpad'(val) handle:close() end) handle:send() end