Actions
Actions copied to clipboard
Action Proposal: Lock/Unlock Semaphore
Description
I'd like to be able to lock a shortcut semaphore so that I can hold the execution of a shortcut if another instance of the same shortcut (or another shortcut under the same semaphore) is already running.
Ideally, it has customizable properties like timeout and retry interval.
When timeout or completion occurs, I'd like it to return a value to see if it completed naturally or timed out, so I set up an if/then that can take appropriate action for the situation.
Good idea. On iOS, an action times out after about 30 seconds (enforced by iOS), so this would not work for long-running shortcuts.