Skip to content

v0.5.1

Compare
Choose a tag to compare
@lilyball lilyball released this 07 Apr 06:44
· 69 commits to master since this release
  • When chaining multiple .main context blocks in the same runloop pass, ensure we release each block before executing the next one.

  • Ensure that if a user-supplied callback is invoked, it is also released on the context where it was invoked (#38).

    This guarantee is only made for callbacks that are invoked (ignoring tokens). What this means is when using e.g. .then(on:_:) if the promise is fulfilled, the onSuccess block will be released on the provided context, but if the promise is rejected no such guarantee is made. If you rely on the context it's released on (e.g. it captures an object that must deallocate on the main thread) then you can use .always or one of the mapResult variants.