java - How can I force order of execution of instructions in Scala -


i have noticed, scala doesn't execute instructions in order. example, if have following instructions.

var = command1.! var b = command2.! 

the second instruction may executed before first 1 because doesn't have dependency on instruction. so, question is, how can force second instruction executed after first instruction.

answering question, how compose processbuilder?, doc says:

two existing processbuilder can combined in following ways:

they can executed in parallel, output of first being fed input second, unix pipes. achieved #| method.

they can executed in sequence, second starting first ends. done ### method.

the execution of second 1 can conditioned return code (exit status) of first, either when it's zero, or when it's not zero. methods #&& , #|| accomplish these tasks.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -