aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex.lux
diff options
context:
space:
mode:
authorEduardo Julian2021-07-26 01:45:57 -0400
committerEduardo Julian2021-07-26 01:45:57 -0400
commite64b6d0114c26a455e19a416b5f02a4d19dd711f (patch)
tree020e426a40aefebf6b052e799b33c40fe4d8a80c /stdlib/source/program/aedifex.lux
parent62b3abfcc014ca1c19d62aacdd497f6a250b372c (diff)
Re-named Promise to Async.
Diffstat (limited to 'stdlib/source/program/aedifex.lux')
-rw-r--r--stdlib/source/program/aedifex.lux20
1 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/source/program/aedifex.lux b/stdlib/source/program/aedifex.lux
index b046a7ace..c84f57170 100644
--- a/stdlib/source/program/aedifex.lux
+++ b/stdlib/source/program/aedifex.lux
@@ -13,7 +13,7 @@
[parser
[environment (#+ Environment)]]
[concurrency
- ["." promise (#+ Promise) ("#\." monad)]]]
+ ["." async (#+ Async) ("#\." monad)]]]
[data
[binary (#+ Binary)]
["." text
@@ -65,15 +65,15 @@
["#/." deploy]]])
(def: repositories
- (-> /.Profile (List (Repository Promise)))
+ (-> /.Profile (List (Repository Async)))
(|>> (get@ #/.repositories)
set.to_list
(list\map (|>> (/repository/remote.repository http.default #.None) /repository.async))))
(def: (with_dependencies program console command profile)
(All [a]
- (-> (Program Promise) (Console Promise)
- (-> (Console Promise) (Program Promise) (file.System Promise) (Shell Promise) Resolution (Command [Exit a]))
+ (-> (Program Async) (Console Async)
+ (-> (Console Async) (Program Async) (file.System Async) (Shell Async) Resolution (Command [Exit a]))
(Command a)))
(do /action.monad
[resolution (/command/deps.do! console
@@ -88,7 +88,7 @@
(wrap [])
_
- (do promise.monad
+ (do async.monad
[_ (\ program exit exit_code)]
(wrap (#try.Failure ""))))]
(wrap output)))
@@ -112,10 +112,10 @@
(\ program.default exit shell.error)))
(def: (command action)
- (All [a] (-> (Promise (Try a)) (IO Any)))
- (exec (do promise.monad
+ (All [a] (-> (Async (Try a)) (IO Any)))
+ (exec (do async.monad
[outcome action]
- (promise.future
+ (async.future
(case outcome
(#try.Success _)
..succeed!
@@ -175,10 +175,10 @@
profile)
[#.None _]
- (promise\wrap (exception.throw /.no_identity []))
+ (async\wrap (exception.throw /.no_identity []))
[_ #.None]
- (promise\wrap (exception.throw ..cannot_find_repository [repository (get@ #/.deploy_repositories profile)]))))
+ (async\wrap (exception.throw ..cannot_find_repository [repository (get@ #/.deploy_repositories profile)]))))
#/cli.Dependencies
(..command