(port)
| 318 | } |
| 319 | |
| 320 | export function beginLsUse(port) { |
| 321 | const entry = getLsEntryByPort(port); |
| 322 | if (!entry) return null; |
| 323 | const key = keyByPort(port); |
| 324 | if (key && (_maintenanceUses.get(key) || 0) > 0) return null; |
| 325 | entry.activeRequests = (entry.activeRequests || 0) + 1; |
| 326 | touchEntry(entry); |
| 327 | return entry; |
| 328 | } |
| 329 | |
| 330 | export function endLsUse(port) { |
| 331 | const entry = getLsEntryByPort(port); |
no test coverage detected