Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import httpclient , asyncdispatch
  2.  
  3. proc test*() {.async.} =
  4. var client = newAsyncHttpClient()
  5. discard await client.getContent("http://pomf.se")
  6.  
  7. when isMainModule: test()
  8.  
  9. Error: value of type 'Future[system.void]' has to be discarded
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement