aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-27 17:46:29 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-27 17:46:29 +0800
commit4f7bd4f6fa5d27cfe703c54aa029a321f40d19fb (patch)
tree97c31ddbb905d8f0e70418b0970ee6420aeac611 /examples
parent6cadc8d39adebbc263e8576c389b5ef491f10ace (diff)
feat(macros): add async mutable resource injection for `#[chain]`
Support `&mut T` resource parameters in async chain functions by using an extract-store pattern that avoids holding mutable borrows across await points. Remove the previous compile-time rejection of this combination.
Diffstat (limited to 'examples')
-rw-r--r--examples/example-async-support/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/example-async-support/src/main.rs b/examples/example-async-support/src/main.rs
index 920b3dd..847bfea 100644
--- a/examples/example-async-support/src/main.rs
+++ b/examples/example-async-support/src/main.rs
@@ -9,8 +9,7 @@
//!
//! However, you will lose some capabilities:
//!
-//! 1. `&mut` resource injection is not available in async chain functions
-//! 2. The program will not be able to use panic unwind functionality
+//! 1. The program will not be able to use panic unwind functionality
//!
//! Run:
//! ```bash