mirror of
https://github.com/atom/atom.git
synced 2026-02-07 05:05:02 -05:00
Convert text-editor-component-spec to Babel for async/await
It's much easier to reason about async/await than Jasmine's built-in queuing system, and using them made it easier to debug flaky async tests.
This commit is contained in:
@@ -1076,7 +1076,7 @@ class DisplayBuffer extends Model
|
||||
|
||||
unless @didUpdateDecorationsEventScheduled
|
||||
@didUpdateDecorationsEventScheduled = true
|
||||
process.nextTick =>
|
||||
global.setImmediate =>
|
||||
@didUpdateDecorationsEventScheduled = false
|
||||
@emitter.emit 'did-update-decorations'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user