Skip to content

Instantly share code, notes, and snippets.

@Yardanico
Last active July 30, 2017 09:46
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/8c5664871ec8d631da25519c80d2f264 to your computer and use it in GitHub Desktop.
Save Yardanico/8c5664871ec8d631da25519c80d2f264 to your computer and use it in GitHub Desktop.
template answer(data: string) {.dirty.} =
api.sendMessage(data)
return
proc someHello(api: SomeApi) {.async.} =
try:
raise newException(Exception, "Oh, exception!")
except:
answer "Exception happened..."
echo "never happens"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment