Releases: spider-gazelle/promise
Releases · spider-gazelle/promise
v1.4.2
v1.3.0: feat: ensure promises are thread safe
Promises are now threadsafe
Promise.defer
now defaults to executing with spawn
defaults (i.e. could be executed on another thread)
it also supports the same_thread
option
v1.2.0
- thread aware (will not spawn on different threads)
- rejections can be propagated by returning an exception in the catch block
- spec updated as now compiler enforces no promise type changes in catch blocks (this is desired behaviour - catch blocks can only recover a promise and must match the parent type to do so)
v1.1.3
v1.1.2
v1.1.1
v1.1.0: use .get instead of .value
this matches the style of crystals internal Concurrent::Future class which performs a similar role