Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Created May 20, 2020 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yardanico/194ef43f8dcfd1ada8eb379de6abaee9 to your computer and use it in GitHub Desktop.
Save Yardanico/194ef43f8dcfd1ada8eb379de6abaee9 to your computer and use it in GitHub Desktop.
import asyncdispatch, tables
const
Currencies = {"USD": "$: "}.toTable
proc getData() {.async.} =
for curr, text in Currencies:
echo curr, text
waitFor getData()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment