Merge pull request #7023 from yglukhov/unify-async
Unify async macro and futures for js and native targets
This commit is contained in:
commit
b754bfabb6
7 changed files with 43 additions and 4 deletions
6
lib/pure/async.nim
Normal file
6
lib/pure/async.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
when defined(js):
|
||||
import asyncjs
|
||||
export asyncjs
|
||||
else:
|
||||
import asyncmacro, asyncfutures
|
||||
export asyncmacro, asyncfutures
|
||||
Loading…
Add table
Add a link
Reference in a new issue