aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/concurrency/promise.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/lux/concurrency/promise.lux')
-rw-r--r--stdlib/source/lux/concurrency/promise.lux6
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/source/lux/concurrency/promise.lux b/stdlib/source/lux/concurrency/promise.lux
index 24f26a24c..1a471022f 100644
--- a/stdlib/source/lux/concurrency/promise.lux
+++ b/stdlib/source/lux/concurrency/promise.lux
@@ -141,7 +141,8 @@
left||right))))
(def: #export (schedule millis-delay computation)
- {#.doc "Runs an I/O computation on its own process (after a specified delay) and returns a Promise that will eventually host its result."}
+ {#.doc (doc "Runs an I/O computation on its own process (after a specified delay)."
+ "Returns a Promise that will eventually host its result.")}
(All [a] (-> Nat (IO a) (Promise a)))
(let [!out (promise #.None)]
(exec (|> (do io.Monad<IO>
@@ -152,7 +153,8 @@
!out)))
(def: #export future
- {#.doc "Runs an I/O computation on its own process and returns a Promise that will eventually host its result."}
+ {#.doc (doc "Runs an I/O computation on its own process."
+ "Returns a Promise that will eventually host its result.")}
(All [a] (-> (IO a) (Promise a)))
(schedule 0))