(operation: () => Promise<T>)
| 67 | } |
| 68 | |
| 69 | export async function runSerializedDbTask<T>(operation: () => Promise<T>): Promise<T> { |
| 70 | const queuedRun = writeQueue.then(operation, operation); |
| 71 | writeQueue = queuedRun.then( |
| 72 | () => undefined, |
| 73 | () => undefined, |
| 74 | ); |
| 75 | return queuedRun; |
| 76 | } |
no outgoing calls
no test coverage detected