← 返回卡片

原书出处

App 架构

08 Elm 架构

核验版本的摘录快照 · 导入于 2026-11-13T13:00:23.677Z

func run(action: Message) { assert(Thread.current.isMainThread) let commands = updateState(&model, action) // ... } 这里是 driver 将消息传递给 app 状态的地方。

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/App 架构/_epub-src/text/part0010_split_002.html

EPUB SHA-256:d979fd797d5aa49182efc0886f7b968d17def30c2cd5e2e0fe185f700e43fbda