Skip to content

Commit

Permalink
Set version to 7.0.443
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Feb 22, 2022
1 parent 7d5a5f5 commit 40083db
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog #

## Version 7.0.443

Date: 2022-02-22

- Add better builtin clj-kondo config (thanks to @wilkerlucio)
- Make `promise?` to check for IPromise protocol instead of concrete
types.
- Add `promesa.exec/with-dispatch` macro.


## Version 7.0.437

Date: 2022-02-21
Expand Down
4 changes: 2 additions & 2 deletions doc/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ A promise library for Clojure and ClojureScript.
Leiningen:

```clojure
[funcool/promesa "7.0.437"]
[funcool/promesa "7.0.443"]
```

deps.edn:

```clojure
funcool/promesa {:mvn/version "7.0.437"}
funcool/promesa {:mvn/version "7.0.443"}
```

On the JVM platform _promesa_ is built on top of *completable futures*
Expand Down
3 changes: 1 addition & 2 deletions src/promesa/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@
(defn promise?
"Return true if `v` is a promise instance."
[v]
#?(:clj (instance? CompletionStage v)
:cljs (instance? impl/*default-promise* v)))
(satisfies? pt/IPromise v))

(defn deferred?
"Return true if `v` is a promise instance (alias to `promise?`."
Expand Down
8 changes: 8 additions & 0 deletions src/promesa/exec.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,11 @@
(->ScheduledTask #js {:done done
:cancelled false
:cancel-fn cancel})))))

(defmacro with-dispatch
"Helper marcro for dispatch execution of the body to an executor
service."
[executor & body]
`(submit! ~executor (^:once fn* [] ~@body)))


4 changes: 2 additions & 2 deletions tools.clj
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
:pseudo-names true
:verbose true})

(defmethod task "build:tests"
(defmethod task "build"
[args]
(api/build (api/inputs "src" "test") build-options))

(defmethod task "watch:tests"
(defmethod task "watch"
[args]
(println "Start watch loop...")
(letfn [(run-tests []
Expand Down

0 comments on commit 40083db

Please sign in to comment.