diff options
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/library/lux/control/concurrency/thread.lux | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/stdlib/source/library/lux/control/concurrency/thread.lux b/stdlib/source/library/lux/control/concurrency/thread.lux index 5e76521ed..0f5c30601 100644 --- a/stdlib/source/library/lux/control/concurrency/thread.lux +++ b/stdlib/source/library/lux/control/concurrency/thread.lux @@ -56,9 +56,9 @@ @.python (ffi.import: threading/Timer - ["[1]::[0]" - (new [ffi.Float ffi.Function]) - (start [] "io" "?" Any)])] + "[1]::[0]" + (new [ffi.Float ffi.Function]) + (start [] "io" "?" Any))] ... Default (type: Thread @@ -129,15 +129,14 @@ @.jvm <jvm> @.js - (..setTimeout [(ffi.closure [] (..execute! action)) - (n.frac milli_seconds)]) + (..setTimeout (ffi.function [] (..execute! action)) + (n.frac milli_seconds)) @.python (do io.monad - [_ (|> (ffi.lambda [] (..execute! action)) - [(|> milli_seconds n.frac (f./ +1,000.0))] - threading/Timer::new - (threading/Timer::start []))] + [_ (|> (ffi.function [] (..execute! action)) + (threading/Timer::new (|> milli_seconds n.frac (f./ +1,000.0))) + threading/Timer::start)] (in []))] ... Default |