mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 18:00:05 +08:00
15 lines
268 B
Lua
15 lines
268 B
Lua
|
local a = require "plenary.async_lib.async"
|
||
|
local util = require "plenary.async_lib.util"
|
||
|
|
||
|
local M = {}
|
||
|
|
||
|
M.describe = function(s, func)
|
||
|
describe(s, util.will_block(a.future(func)))
|
||
|
end
|
||
|
|
||
|
M.it = function(s, func)
|
||
|
it(s, util.will_block(a.future(func)))
|
||
|
end
|
||
|
|
||
|
return M
|