MCPcopy
hub / github.com/mysqljs/mysql / wrapToDomain

Function wrapToDomain

lib/Connection.js:519–529  ·  view source on GitHub ↗
(ee, fn)

Source from the content-addressed store, hash-verified

517}
518
519function wrapToDomain(ee, fn) {
520 return function () {
521 if (Events.usingDomains && ee.domain) {
522 ee.domain.enter();
523 fn.apply(this, arguments);
524 ee.domain.exit();
525 } else {
526 fn.apply(this, arguments);
527 }
528 };
529}

Callers 2

Connection.jsFile · 0.85
wrapCallbackInDomainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected