Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import httpclient , asyncdispatch
- proc test*() {.async.} =
- var client = newAsyncHttpClient()
- discard await client.getContent("http://pomf.se")
- when isMainModule: test()
- Error: value of type 'Future[system.void]' has to be discarded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement