aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/program/aedifex/dependency/deployment.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/dependency/deployment.lux
parent62b3abfcc014ca1c19d62aacdd497f6a250b372c (diff)
Re-named Promise to Async.
Diffstat (limited to 'stdlib/source/program/aedifex/dependency/deployment.lux')
-rw-r--r--stdlib/source/program/aedifex/dependency/deployment.lux18
1 files changed, 9 insertions, 9 deletions
diff --git a/stdlib/source/program/aedifex/dependency/deployment.lux b/stdlib/source/program/aedifex/dependency/deployment.lux
index 150055cf3..3a7cba41f 100644
--- a/stdlib/source/program/aedifex/dependency/deployment.lux
+++ b/stdlib/source/program/aedifex/dependency/deployment.lux
@@ -7,7 +7,7 @@
[control
["." try (#+ Try)]
[concurrency
- ["." promise (#+ Promise)]]]
+ ["." async (#+ Async)]]]
[data
[binary (#+ Binary)]
["." product]
@@ -41,16 +41,16 @@
["#/." status (#+ Status)]]])
(def: (with_status repository version_template [artifact type] [data status])
- (-> (Repository Promise) ///artifact.Version Dependency [Binary Status] (Promise (Try Any)))
+ (-> (Repository Async) ///artifact.Version Dependency [Binary Status] (Async (Try Any)))
(let [artifact (format (///artifact.uri version_template artifact)
(///artifact/extension.extension type))
- deploy_hash (: (All [h] (-> (Codec Text (Hash h)) Extension (Hash h) (Promise (Try Any))))
+ deploy_hash (: (All [h] (-> (Codec Text (Hash h)) Extension (Hash h) (Async (Try Any))))
(function (_ codec extension hash)
(|> hash
(\ codec encode)
(\ utf8.codec encode)
(\ repository upload (format artifact extension)))))]
- (do {! (try.with promise.monad)}
+ (do {! (try.with async.monad)}
[_ (\ repository upload artifact data)]
(case status
#///dependency/status.Unverified
@@ -116,9 +116,9 @@
))))
(def: #export (one repository [artifact type] package)
- (-> (Repository Promise) Dependency Package (Promise (Try Artifact)))
- (do {! promise.monad}
- [now (promise.future instant.now)
+ (-> (Repository Async) Dependency Package (Async (Try Artifact)))
+ (do {! async.monad}
+ [now (async.future instant.now)
#let [version_template (get@ #///artifact.version artifact)]]
(do (try.with !)
[_ (with_status repository version_template [artifact type] (get@ #///package.library package))
@@ -141,8 +141,8 @@
(wrap artifact))))
(def: #export (all repository resolution)
- (-> (Repository Promise) Resolution (Promise (Try (Set Artifact))))
- (let [! (try.with promise.monad)]
+ (-> (Repository Async) Resolution (Async (Try (Set Artifact))))
+ (let [! (try.with async.monad)]
(|> (dictionary.entries resolution)
(monad.map ! (function (_ [dependency package])
(..one repository dependency package)))