MCPcopy
hub / github.com/openseadragon/openseadragon / then

Method then

src/openseadragon.js:2999–3009  ·  view source on GitHub ↗
(handler)

Source from the content-addressed store, hash-verified

2997 }
2998
2999 then(handler) {
3000 if (!this._error) {
3001 try {
3002 this._value = handler(this._value);
3003 } catch (e) {
3004 this._value = e;
3005 this._error = true;
3006 }
3007 }
3008 return this;
3009 }
3010
3011 catch(handler) {
3012 if (this._error) {

Callers 15

awaitWithTimeoutFunction · 0.80
withGlobalErrorCaptureFunction · 0.80
basic.jsFile · 0.80
type-conversion.jsFile · 0.80
tileLoadedFunction · 0.80
tileLoaded1Function · 0.80
tileLoaded2Function · 0.80
getDataAsMethod · 0.80
prepareForRenderingMethod · 0.80

Calls 1

handlerFunction · 0.85

Tested by

no test coverage detected