You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixed#2506, creating an AsyncRuntime trait which can be used by customers to replace the async runtime
* CI pipeline fixes
* wasm32 clippy fixes
* Fixed typo
* Minor test cleanup
* PR feedback
* PR feedback
* doctest fixes
* Added text to README.md describing how to set the async runtime used by the SDK
* Update sdk/core/azure_core/CHANGELOG.md
Co-authored-by: Heath Stewart <heaths@outlook.com>
* Policheck feedback
---------
Co-authored-by: Heath Stewart <heaths@outlook.com>
Internally, the Azure SDK uses either the `tokio` async runtime (with the `tokio` feature), or it implements asynchronous functionality using functions in the `std` namespace.
252
+
253
+
If your application uses a different asynchronous runtime, you can replace the asynchronous runtime used for internal functions by providing your own implementation of the `azure_core::async_runtime::AsyncRuntime` trait.
254
+
255
+
You provide the implementation by calling the `set_async_runtime()` API:
Copy file name to clipboardExpand all lines: sdk/typespec/typespec_client_core/CHANGELOG.md
+13-10Lines changed: 13 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@
4
4
5
5
### Features Added
6
6
7
+
- Added `get_async_runtime()` and `set_async_runtime()` to allow customers to replace
8
+
the default asynchronous runtime with another.
9
+
7
10
### Breaking Changes
8
11
9
12
### Bugs Fixed
@@ -28,29 +31,29 @@
28
31
29
32
### Breaking Changes
30
33
31
-
- The `reqwest_rustls` feature enables `rustls-tls-native-roots-no-provider` instead of `rustls-tls-native-roots` to remove the dependency on the `ring` crate.
34
+
-The `reqwest_rustls` feature enables `rustls-tls-native-roots-no-provider` instead of `rustls-tls-native-roots` to remove the dependency on the `ring` crate.
32
35
33
36
### Other Changes
34
37
35
-
- Deriving `SafeDebug` formats non-exhaustive types by default. Enable `debug` feature to format normal `Debug` output.
36
-
- Updated dependencies.
38
+
-Deriving `SafeDebug` formats non-exhaustive types by default. Enable `debug` feature to format normal `Debug` output.
39
+
-Updated dependencies.
37
40
38
41
## 0.2.0 (2025-04-08)
39
42
40
43
### Breaking Changes
41
44
42
-
- Consolidated all the `tokio` features into a single feature named `tokio`. Traits remain separate but `tokio` support is enabled with a single feature.
43
-
- Removed `Header` re-export from `http` module. It is still defined in the `http::headers` module.
44
-
- Removed `http-types` dependency and implemented `Method` instead.
45
-
- Removed `Pager`.
46
-
- Removed `parsing` module.
45
+
-Consolidated all the `tokio` features into a single feature named `tokio`. Traits remain separate but `tokio` support is enabled with a single feature.
46
+
-Removed `Header` re-export from `http` module. It is still defined in the `http::headers` module.
47
+
-Removed `http-types` dependency and implemented `Method` instead.
48
+
-Removed `Pager`.
49
+
-Removed `parsing` module.
47
50
48
51
### Other Changes
49
52
50
-
- Use `std::sync::LazyLock` added in rustc 1.80 instead of `once_cell::sync::Lazy`.
53
+
-Use `std::sync::LazyLock` added in rustc 1.80 instead of `once_cell::sync::Lazy`.
0 commit comments