Merge pull request #7023 from yglukhov/unify-async

Unify async macro and futures for js and native targets
This commit is contained in:
Dominik Picheta 2018-01-17 15:06:32 +00:00 • committed by GitHub
commit b754bfabb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 43 additions and 4 deletions

6
lib/pure/async.nim Normal file
View file

@ -0,0 +1,6 @@
when defined(js):
import asyncjs
export asyncjs
else:
import asyncmacro, asyncfutures
export asyncmacro, asyncfutures