diff options
author | Ted Yin <[email protected]> | 2018-02-03 22:51:30 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2018-02-03 22:51:30 -0500 |
commit | 1e4b2fdb9308494b7c1f75816f10ebc7b11b0533 (patch) | |
tree | 6c07edaa7623d8dd18e3c93057615b51129b1424 | |
parent | bfb37b656788c49dac20ad2ae38f23cfdd1c5c36 (diff) |
Update README.rst
-rw-r--r-- | README.rst | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7,7 +7,7 @@ CPPromise .. image:: https://img.shields.io/github/license/Determinant/cppromise.svg :target: https://github.com/Determinant/cppromise -This is a lightweight C++14/17 compatiable implementation of promises (similar +This is a lightweight C++14/17 compatible implementation of promises (similar to Javascript Promise/A+). It allows type-safe polymorphic promises and incurs little runtime overhead. The runtime type-checking is enforced and supported by the underlying `any` type, an exception will be thrown when the resolved value @@ -36,7 +36,7 @@ registered ``on_fulfilled()`` function will be invoked using ``result`` as the a .. code-block:: cpp - tempalte<typename T> reject(T reason) const; + template<typename T> reject(T reason) const; Reject the promise with value ``result``. This may reject the other promises waiting for the current promise recursively. When a promise is rejected, the |