withScriptLock HelperStandalone projects and library code don't get a Document Lock. When the critical section is the script project itself — watermark updates…
Catch a webhook in Apps Script without losing the payloadWebhooks don't retry politely when your script throws mid-flight. A solid Apps Script receiver does four boring things well: accept doPost…
withUserLock HelperDocument locks serialize everyone on a spreadsheet. User locks only serialize the same user's overlapping runs — handy for personal quotas…
withDocumentLock HelperWhen a time-driven trigger and a manual run can overlap — or two editors kick the same sync — you need a lock. This helper wraps LockService…