MCPcopy Create free account
hub / github.com/Effect-TS/effect / commit

Method commit

packages/effect/src/ui/internal/mountRun.ts:137–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 })
136 }
137 private commit(): void {
138 if (this.cut !== undefined || this.rec.inst.closed) return
139 if (this.ctx === undefined) return this.start()
140 const latest = this.mount
141 if (latest["~sameArgs"](this.published)) return
142 this.published = latest.args
143 if (this.args !== undefined) {
144 inlined(() => latest["~args"].publish(this.args!, latest.args))
145 }
146 }
147 update(mount: Mount.Any): void {
148 if (this.mount === mount) return
149 this.mount = mount

Callers 15

scheduleMethod · 0.95
makeHarnessFunction · 0.45
suiteFunction · 0.45
compactionSuiteFunction · 0.45
Runtime.test.tsFile · 0.45
makeWithTransactionFunction · 0.45

Calls 3

startMethod · 0.95
inlinedFunction · 0.90
publishMethod · 0.65

Tested by 1

makeHarnessFunction · 0.36