Optimize wait/message (#9086)
* add `IExecutor.yield` to optimize `wait` * add MessageType.label. and add outSuccess * remove `MessageType.label` in support `marks` * amend * amend
This commit is contained in:
@@ -514,6 +514,10 @@ public class LogicBlock extends Block{
|
||||
for(int i = 0; i < (int)accumulator; i++){
|
||||
executor.runOnce();
|
||||
accumulator --;
|
||||
if(executor.yield){
|
||||
executor.yield = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user