()
| 12 | |
| 13 | let anonJobCounter = 0; |
| 14 | function resolveAnonJobName() { |
| 15 | const now = new Date() |
| 16 | if (anonJobCounter === Number.MAX_SAFE_INTEGER) { |
| 17 | anonJobCounter = 0 |
| 18 | } |
| 19 | anonJobCounter++ |
| 20 | |
| 21 | return `<Anonymous Job ${anonJobCounter} ${now.toISOString()}>` |
| 22 | } |
| 23 | |
| 24 | function Job(name, job, callback) { |
| 25 | // setup a private pendingInvocations variable |
no outgoing calls
no test coverage detected
searching dependent graphs…