Created
October 17, 2017 05:09
-
-
Save x86128/645835a3f876625ce022fb5283428813 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncdispatch | |
import httpclient | |
proc getres() : Future[string] {.async.} = | |
var client = newAsyncHttpClient() | |
result = client.getContent("http://google.com") | |
echo(waitFor getres()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
anim.nim(4, 32) template/generic instantiation from here
anim.nim(6, 10) Error: type mismatch: got (Future[system.string]) but expected 'string'