Unify async macro and futures for js and native targets
This commit is contained in:
parent
67ac1aef59
commit
c93655e8b4
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