mirror of
https://github.com/simonbrunel/qtpromise.git
synced 2025-03-14 18:39:44 +08:00
Split the root README.md in multiple Markdown files (in the `docs/` folder) to make easier reading, editing and extending the documentation. An online version is also available on netlify (https://qtpromise.netlify.com). Building it requires Node.js installed, then: - npm install -g gitbook-cli - gitbook install ./ - gitbook build . dist/docs
634 B
634 B
Thread-Safety
QPromise is thread-safe and can be copied and accessed across different threads. QPromise relies on explicitly data sharing and thus auto p2 = p1
represents the same promise: when p1
resolves, handlers registered on p1
and p2
are called, the fulfilled value being shared between both instances.
Note: while it's safe to access the resolved value from different threads using
then
, QPromise provides no guarantee about the object being pointed to. Thread-safety and reentrancy rules for that object still apply.