Actions icon indicating copy to clipboard operation
Actions copied to clipboard

Action Proposal: Lock/Unlock Semaphore

Open kraigparkinson opened this issue 2 years ago • 1 comments

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.

kraigparkinson avatar Jan 10 '23 19:01 kraigparkinson

Good idea. On iOS, an action times out after about 30 seconds (enforced by iOS), so this would not work for long-running shortcuts.

sindresorhus avatar Jan 11 '23 05:01 sindresorhus