MCPcopy
hub / github.com/desktop/desktop / isBusyError

Function isBusyError

app/test/helpers/temp.ts:8–8  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

6import { isErrnoException } from '../../src/lib/errno-exception'
7
8const isBusyError = (e: unknown) => isErrnoException(e) && e.code === 'EBUSY'
9
10// Reimplementation of retry logic in rimraf:
11// https://github.com/isaacs/rimraf/blob/8733d4c30078a1ae5f18bb6affe83c1eea0259b4/src/retry-busy.ts#L10

Callers 1

cleanFunction · 0.85

Calls 1

isErrnoExceptionFunction · 0.90

Tested by

no test coverage detected