Something like this should work import asyncjs proc main() {.async.} = let x = await apiFunction() main() Run
- Can I use async/await to work with JS Promises? akavel
- Can I use async/await to work with JS Promises? vijaymarupudi
Something like this should work import asyncjs proc main() {.async.} = let x = await apiFunction() main() Run