feat: rewrite of spec resolving

This commit is contained in:
Folke Lemaitre 2024-06-22 22:18:26 +02:00
parent 8d35e60eeb
commit 75ffe56f70
9 changed files with 558 additions and 429 deletions

View file

@ -93,7 +93,7 @@ function M.pretty_trace(opts)
end
---@generic R
---@param fn fun():R
---@param fn fun():R?
---@param opts? string|{msg:string, on_error:fun(msg)}
---@return R
function M.try(fn, opts)