mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 23:44:53 -04:00
With https://github.com/matrix-org/matrix-rust-sdk/pull/1601, `TaskHandle::with_callback` is no longer necessary. This patch updates `TaskHandle` as follows: 1. Before, the `handle` and `callback` fields were not mutually exclusive! Indeed, the `callback` field was used as an abort mechanism, but _also_ as a finalizer, i.e. a code that runs _after_ the cancellation of `handle`. Now that the callback-based solution is no longer used, we can keep one usage for this field and rename it `finalizer`. 2. The `handle` field is no longer optional, as it will always be set. 3. The `with_callback` method is renamed `new` as it's now the only constructor. 4. The `set_callback` method is renamed `set_finalizer`. Tadaaa.
Matrix Rust SDK bindings
In this directory, one can find bindings to the Rust SDK that are maintained by the owners of the Matrix Rust SDK project.
appleormatrix-rust-components-swift, Swift bindings of thematrix-sdkcrate viamatrix-sdk-ffi,matrix-sdk-crypto-ffi, UniFFI (Kotlin, Swift, Python, Ruby) bindings of thematrix-sdk-cryptocrate,matrix-sdk-crypto-js, JavaScript bindings of thematrix-sdk-cryptocrate,matrix-sdk-crypto-nodejs, Node.js bindings of thematrix-sdk-cryptocrate,matrix-sdk-ffi, UniFFI bindings of thematrix-sdkcrate.