Skip to content

Releases: spider-gazelle/promise

v1.4.2

06 Dec 05:12
Compare
Choose a tag to compare

adds Promise.map support
fixes a race condition in multi-threaded mode

v1.3.0: feat: ensure promises are thread safe

28 Sep 22:57
Compare
Choose a tag to compare

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

27 Sep 00:40
Compare
Choose a tag to compare
  • 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

05 Aug 10:17
Compare
Choose a tag to compare

fixes abstract class warnings in crystal 0.3.0

v1.1.2

11 Feb 20:33
Compare
Choose a tag to compare

simplifies deferred #get

v1.1.1

23 Aug 00:31
Compare
Choose a tag to compare

Fixes compatibility with the Crystal 0.26.0 release

v1.1.0: use .get instead of .value

05 Aug 04:34
Compare
Choose a tag to compare
this matches the style of crystals internal Concurrent::Future class which performs a similar role