Skip to content

Commit 306e10f

Browse files
author
Eric Koleda
committed
Add JSDoc to lockable_ method.
1 parent 4ae0db4 commit 306e10f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Service.gs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,12 @@ Service_.prototype.createJwt_ = function() {
658658
return toSign + '.' + signature;
659659
};
660660

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+
*/
661667
Service_.prototype.lockable_ = function(func) {
662668
var releaseLock = false;
663669
if (this.lock_ && !this.lock_.hasLock()) {
@@ -669,4 +675,4 @@ Service_.prototype.lockable_ = function(func) {
669675
this.lock_.releaseLock();
670676
}
671677
return result;
672-
}
678+
};

0 commit comments

Comments
 (0)