Skip to content

Commit

Permalink
Set version to 7.0.444
Browse files Browse the repository at this point in the history
Revert some changes from prev version.
  • Loading branch information
niwinz committed Feb 22, 2022
1 parent 40083db commit eb4b102
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog #

## Version 7.0.444

Date: 2022-02-22

- REVERT: Make `promise?` to check for IPromise protocol instead of concrete
types. Because the impl was wrong.


## Version 7.0.443

Date: 2022-02-22
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.443"]
[funcool/promesa "7.0.444"]
```

deps.edn:

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

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

(defn deferred?
"Return true if `v` is a promise instance (alias to `promise?`."
Expand Down

0 comments on commit eb4b102

Please sign in to comment.