怎么终止代码继续执行
#490
Replies: 2 comments 2 replies
-
可以查阅文档,大概类似这样。 func test( ctrl: &mut FlowCtrl){
ctrl.skip_rest();
} 这个可以控制是否执行后续的 Handler, 但是 handler 内部逻辑是你自己控制。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
有试过ctrl.skip_rest(), 没有终止继续执行代码,像你说的一样这个只是后续的Handler. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
比如下面一个函数,在判断is_empty()时, 为真就直接返回,不再执行下面的代码 res.render("ok");。
Beta Was this translation helpful? Give feedback.
All reactions