A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/core/commit/94b2ddc6f97170f4169d9d81b963c6bcaab08be2 below:

improve error handling in job flushing (#13587) · vuejs/core@94b2ddc · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+10

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+10

-4

lines changed Original file line number Diff line number Diff line change

@@ -114,12 +114,18 @@ export function queueJob(job: SchedulerJob): void {

114 114

}

115 115

}

116 116 117 +

const doFlushJobs = () => {

118 +

try {

119 +

flushJobs()

120 +

} catch (e) {

121 +

currentFlushPromise = null

122 +

throw e

123 +

}

124 +

}

125 + 117 126

function queueFlush() {

118 127

if (!currentFlushPromise) {

119 -

currentFlushPromise = resolvedPromise.then(flushJobs).catch(e => {

120 -

currentFlushPromise = null

121 -

throw e

122 -

})

128 +

currentFlushPromise = resolvedPromise.then(doFlushJobs)

123 129

}

124 130

}

125 131

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4