Commit 9a0a461
authored
fix: Updating selection and contents at the same time can leads to hangs (#17)
I've noticed that it's possible to cause a hang when updating the
contents and selection at the same time. This works around that by
asynchronously dispatching the selection set back to the main queue to
break the (assumed) dependency loop.1 parent 9ef34bb commit 9a0a461
1 file changed
Lines changed: 6 additions & 1 deletion
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
179 | 184 | | |
180 | 185 | | |
181 | 186 | | |
| |||
0 commit comments