(action: () => T, thisArg = undefined)
| 8 | * @returns any value that was returned by the 'action' parameter. |
| 9 | */ |
| 10 | export function transaction<T>(action: () => T, thisArg = undefined): T { |
| 11 | startBatch() |
| 12 | try { |
| 13 | return action.apply(thisArg) |
| 14 | } finally { |
| 15 | endBatch() |
| 16 | } |
| 17 | } |
searching dependent graphs…