(args: {
lockName: LockName;
lockDir: string;
lockPath: string;
})
| 164 | } |
| 165 | |
| 166 | function buildHandle(args: { |
| 167 | lockName: LockName; |
| 168 | lockDir: string; |
| 169 | lockPath: string; |
| 170 | }): ProcessLockHandle { |
| 171 | const { lockName, lockDir, lockPath } = args; |
| 172 | return { |
| 173 | lockPath, |
| 174 | release: () => releaseProcessLock({ lockName, lockDir }), |
| 175 | updatePort: (port) => updateProcessLockPort({ lockName, lockDir, port }), |
| 176 | }; |
| 177 | } |
| 178 | |
| 179 | export function updateProcessLockPort(opts: { |
| 180 | lockName: LockName; |
no test coverage detected