20240702 - v2.13.0
asyncrun#get_root()
now accepts buffer number, if you pass an integer in the first argument, it will be interpreted as a buffer number.
This will display the root of current buffer:
:echo asyncrun#get_root(bufnr('%'))
as well as:
:echo asyncrun#get_root('%')