In an orchestra, you can expand or contract the scope and nature of the orchestra by reusing codes to change the logic of business processes for a composite application.
在编制过程中,您可以扩大或缩小编制的范围和性质,通过复用代码来改变复合应用程序的业务流程逻辑。
2
By doing so, the loop in the main scope and logic in the event handler controls the final number of event handler instances.
这样,主范围内的循环和事件处理程序中的逻辑就可以控制事件处理程序的最终数目。
3
Closures, however, can be useful in any context where we need to encapsulate logic inside its own scope.