Avatar
omochimetaru 8/18/2017 2:21 AM
ああ
2:22 AM
async/awaitの詳細は、この、プロポーザル下書きのほうにかいてあるわ。
2:22 AM
NOTE: This section is concrete enough to have a fully baked proposal.
2:22 AM
1行目に書いてあった。
2:23 AM
Part1がasync/await、Part2がactor actor TableModel { let mainActor : TheMainActor var theList : [String] = [] { didSet { mainActor.updateTableView(theList) } } init(mainActor: TheMainActor) { self.mainActor = mainActor } // this checks to see if all the entries in the list are capitalized: // if so, it capitalize the string before returning it to encourage // capitalization consistency in the list. func prettify(_ x : String) -> String { // ... details omitted, it just pokes theList directly ... } actor func add(entry: String) { theList.append(prettify(entry)) } }
2:23 AM
Part3はなんかアクターとエラーについての話、reliability reliable actor Notifier { ... } reliable actor class Notifier { ... }
2:26 AM
Part4がネットワーク越しのactorとかの話 distributed actor MyDistributedCache { ... } distributed actor class MyDistributedCache { ... }