MCPcopy Create free account
hub / github.com/marijnh/Eloquent-JavaScript / compute

Method compute

src/client/sandbox.mjs:445–447  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

443 }
444
445 compute(value) {
446 return this.work[value] || (this.work[value] = this.mapping(value).then(result => this.done[value] = result))
447 }
448
449 store(value, result) {
450 this.work[value] = Promise.resolve(result)

Callers 3

constructorMethod · 0.80
prepareMethod · 0.80
evalModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected