We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae0db4 commit 306e10fCopy full SHA for 306e10f
src/Service.gs
@@ -658,6 +658,12 @@ Service_.prototype.createJwt_ = function() {
658
return toSign + '.' + signature;
659
};
660
661
+/**
662
+ * Locks access to a block of code, if a lock has been set on this service.
663
+ * @param {function} func The code to execute.
664
+ * @return {*} The result of the code block.
665
+ * @private
666
+ */
667
Service_.prototype.lockable_ = function(func) {
668
var releaseLock = false;
669
if (this.lock_ && !this.lock_.hasLock()) {
@@ -669,4 +675,4 @@ Service_.prototype.lockable_ = function(func) {
675
this.lock_.releaseLock();
670
676
}
671
677
return result;
672
-}
678
+};
0 commit comments