M5(T-M5-03): 高频出站节流——通用 Debouncer/Throttler + 网络变化防抖合并
- common 新增 Debouncer/Throttler 工具(不在桥核心按 handler 名节流,避免桥核心 感知能力,违反零感知约束;由 Provider 自治应用) - NetworkProvider:netAvailable/netLost/netCapabilitiesChange 三事件统一经 300ms 防抖,切网瞬间多次突发合并为一次出站;onBackground/onDestroy 取消待发 - 说明:连续定位已受系统 timeInterval:5(5s) 约束、Device 为被动查询,无需额外节流; lzyzsd 协议 _handleMessageFromNative 单条语义,不做跨条合并(保 H5 零改动) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
b461b291f5
commit
0a372f1339
@@ -9,3 +9,4 @@ export { NavEvents, OpenGenericWebPayload, SwitchGamePayload, BackGamePayload }
|
||||
export { DIContainer, Factory } from './src/main/ets/di/DIContainer';
|
||||
export { ErrorCenter, ErrorStrategy, ErrorSink } from './src/main/ets/error/ErrorCenter';
|
||||
export { AppEnv } from './src/main/ets/env/AppEnv';
|
||||
export { Debouncer, Throttler } from './src/main/ets/util/Throttle';
|
||||
|
||||
Reference in New Issue
Block a user