Hey Coders! One generic lock won't be able to fit all your use cases. So it's important to learn the different locks at your disposal. You have: 1) The Document Lock which prevents a certain document from running a section of code more than once. 2) The User Lock, which prevents a unique user from running the code twice before the first execution has completed. 3) The Script Lock, which is the highest security, and only allows one instance of the code to be run at any moment of time, no matter the user or document accessing it. It's important to learn these types before jumping in and creating our own locks, which we'll tackle in the next episode!
Check out the source code on GitHub:
github.com/dav...
🎙️ Help me get a new Microphone! gofund.me/67b2...
❤️ Support the ongoing growth of this channel! / davidweissprogramming
🧑💻 Apps Script Documentation: developers.goo...
----------------------------------------------------------------------------------------------
Other playlists:
Utilities Service:
• Apps Script - Season 1...
Properties Service:
• Apps Script - Season 1...
URL Fetch Service:
• Apps Script - Season 1...
Drive Service:
• Apps Script - Season 1...
Forms Service:
• Apps Script - Season 9...
Lock Service:
• Apps Script - Season 8...
HTML Service:
• Apps Script - Season 7...
Document Service:
• Apps Script - Season 6...
Slides Service:
• Apps Script - Season 5...
Calendar Service:
• Apps Script - Season 4...
Script Service:
• Apps Script - Season 3...
Gmail Service:
• Apps Script - Season 2...
Spreadsheet Service:
• Apps Script - Season 1...
Apps Script Orientation:
• Apps Script - Season 0...
----------------------------------------------------------------------------------------------
Негізгі бет Types of Locks - Episode 8.1 | Apps Script ~ Lock Service
Пікірлер: 6