事件:'locks.request.end'


🌐 Event: 'locks.request.end'

  • name <string> 所请求的锁资源的名称。
  • mode <string> 锁定模式:'exclusive''shared'
  • steal <boolean> 请求是否使用盗取语义。
  • ifAvailable <boolean> 请求是否使用 ifAvailable 语义。
  • error <Error> | <undefined> 回调抛出的错误(如果有的话)。

当锁请求完成时触发,无论回调是否成功、抛出错误,或锁被抢占。

🌐 Emitted when a lock request has finished, whether the callback succeeded, threw an error, or the lock was stolen.