MCPcopy Index your code
hub / github.com/simstudioai/sim / trackExecution

Method trackExecution

apps/sim/executor/execution/engine.ts:227–239  ·  view source on GitHub ↗
(promise: Promise<void>)

Source from the content-addressed store, hash-verified

225 }
226
227 private trackExecution(promise: Promise<void>): void {
228 const trackedPromise = promise
229 .catch((error) => {
230 if (!this.errorFlag) {
231 this.errorFlag = true
232 this.executionError = toError(error)
233 }
234 })
235 .finally(() => {
236 this.executing.delete(trackedPromise)
237 })
238 this.executing.add(trackedPromise)
239 }
240
241 private async waitForAnyExecution(): Promise<void> {
242 if (this.executing.size > 0) {

Callers 1

processQueueMethod · 0.95

Calls 3

toErrorFunction · 0.90
deleteMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected