feat: await Task results with cancellation and cycle-aware scheduling

This commit is contained in:
2026-10-23 20:15:10 +08:00
parent 7bb59fe06f
commit 750484477b
4 changed files with 125 additions and 17 deletions
+3 -1
View File
@@ -162,7 +162,9 @@ fn shift_expression(expression: &mut Expr, offset: usize) {
match &mut expression.kind {
ExprKind::Name(_) | ExprKind::Number(_) | ExprKind::String(_) => {}
ExprKind::Symbol(name) => shift_span(&mut name.span, offset),
ExprKind::Unary { operand, .. } => shift_expression(operand, offset),
ExprKind::Unary { operand, .. } | ExprKind::Await { operand } => {
shift_expression(operand, offset)
}
ExprKind::Binary { left, right, .. } => {
shift_expression(left, offset);
shift_expression(right, offset);