ballerina 学习八 Parallel( 并行处理)
实际上就是并行进行任务的处理
简单例子
- 代码
import ballerina/io;
function main (string… args) {
worker first {
io:println("first");
}
worker second {
io:println("second");
}
worker third {
io:println("third");
}
}
- 输出结果
first
second
third
- 图形
参考资料
https://ballerina.io/learn/by-example/hello-world-parallel.html