node-redlock icon indicating copy to clipboard operation
node-redlock copied to clipboard

Question about documentation in example snippet

Open jamesblacklock opened this issue 2 years ago • 1 comments

https://github.com/mike-marcacci/node-redlock/blob/b720d5fdbe5bb54316031aec8b2c15128dbfa8a9/src/index.ts#L637

Is bullet point (1) actually true? As far as I can tell from the code, the only way the signal gets aborted is if lock extension fails, and the queue() routine is called asynchronously with the routine(), so the duration of the routine() should not affect whether extend() is called.

jamesblacklock avatar Dec 15 '22 16:12 jamesblacklock