summary refs log tree commit diff stats
path: root/lib/pure/async.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/async.nim')
-rw-r--r--lib/pure/async.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/pure/async.nim b/lib/pure/async.nim
new file mode 100644
index 000000000..e4d8d41c3
--- /dev/null
+++ b/lib/pure/async.nim
@@ -0,0 +1,9 @@
+## Exports [asyncmacro](asyncmacro.html) and [asyncfutures](asyncfutures.html) for native backends,
+## and [asyncjs](asyncjs.html) on the JS backend. 
+
+when defined(js):
+  import std/asyncjs
+  export asyncjs
+else:
+  import std/[asyncmacro, asyncfutures]
+  export asyncmacro, asyncfutures