类:RunStoresScope


🌐 Class: RunStoresScope

稳定性: 1 - 实验性

RunStoresScope 表示由 channel.withStoreScope(data) 创建的可释放作用域。它管理存储上下文的生命周期,并确保在作用域退出时这些上下文得到正确恢复。

🌐 The class RunStoresScope represents a disposable scope created by channel.withStoreScope(data). It manages the lifecycle of store contexts and ensures they are properly restored when the scope exits.

必须将作用域与 using 语法一起使用以确保适当的处置。

🌐 The scope must be used with the using syntax to ensure proper disposal.