Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/trepl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/th
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2013-08-12 18:40:17 +0400
committerClement Farabet <clement.farabet@gmail.com>2013-08-12 18:40:17 +0400
commit2f05ab141cefed86c109cb964cb64154539c7a93 (patch)
tree80ce6ea7b986a9791fef0f191bd2c2538adef696 /th
parent53773d4775d6bfa770da5f91ffaf9c3977740ad2 (diff)
Preloading async to expose it to ext scripts
Diffstat (limited to 'th')
-rw-r--r--th2
1 files changed, 1 insertions, 1 deletions
diff --git a/th b/th
index f54f486..f0a0f9b 100644
--- a/th
+++ b/th
@@ -55,6 +55,7 @@ for _,arg in ipairs(parg) do
elseif shortopt == 'a' or option == 'async' then
asyncrepl = true
interactive = true
+ async = require 'async'
elseif shortopt == 'l' then
nextarg = 'lib'
else
@@ -104,7 +105,6 @@ end
-- start repl
if asyncrepl then
-- BETA: async repl
- async = require 'async'
async.repl()
async.go()
else