aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-05-19 22:48:23 +0800
committer魏曹先生 <1992414357@qq.com>2026-05-19 22:48:23 +0800
commit39d66182f0290bacc10886c2659874bd9edc2d4b (patch)
tree7b0e9463575a8350cd5a61bd0d02c9bada892b7f /CHANGELOG.md
parentbd4b09b06181093c95e865b04d4a9cdda7dd0728 (diff)
Add `empty_result!` macro and `REPL` resource, improve examples
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md18
1 files changed, 16 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a9738ff..e10c307 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,8 +8,22 @@ None
### Optimizings:
None
-#### Features:
-None
+1. **\[macros\]** Added the `empty_result!()` macro for early return from a chain function. This macro is a shorthand for constructing an `EmptyResult` and converting it into a `ChainProcess`, signaling to the pipeline that there is no meaningful output to continue processing.
+
+```rust
+use mingling::macros::empty_result;
+
+#[chain]
+fn maybe_skip(prev: SomeEntry) -> Next {
+ if should_skip() {
+ return empty_result!();
+ }
+ // ... continue processing
+ NextEntry::new(result)
+}
+```
+
+Expands to: `crate::EmptyResult::new(()).to_chain()`
#### **BREAKING CHANGES**:
1. **\[core\]** Panic Unwind will not be supported when the `async` feature is enabled