Closed ilharp closed 1 year ago
陈旧的 channel 在视图状态更新后会被关闭。考虑使用 select 忽略对应 channel。
select 无法忽略 channel,且 channel 不应立即关闭,否则残留的用户菜单触发后会 panic。
select
最终使用注册表轮替解决了此问题。
https://github.com/koishijs/koishi-desktop/commit/398e246df7cf8cd76c718d7c96dfc12dd58c0492
陈旧的 channel 在视图状态更新后会被关闭。考虑使用 select 忽略对应 channel。