()
| 70 | } |
| 71 | |
| 72 | key() { |
| 73 | if (this.options.key) { |
| 74 | return typeof this.options.key === "function" |
| 75 | ? this.options.key.apply(this) |
| 76 | : this.options.key; |
| 77 | } else { |
| 78 | const flattenedArgs = JSON.stringify(this.args); |
| 79 | return this.worker.connection.key( |
| 80 | "workerslock", |
| 81 | this.func, |
| 82 | this.queue, |
| 83 | flattenedArgs, |
| 84 | ); |
| 85 | } |
| 86 | } |
| 87 | } |
no outgoing calls
no test coverage detected