Last active
February 11, 2020 07:07
-
-
Save yujp/f69d850e9d042521c0578f7c18613fe5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # how to compile: nim c -d:release hello.nim | |
| import asyncdispatch | |
| import httpClient | |
| proc main() {.async.} = | |
| var client = newAsyncHttpClient() | |
| echo await client.getContent("http://google.com") | |
| waitFor main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment