(dest, func)
| 105 | } |
| 106 | |
| 107 | async function executeOnHandle(dest, func) { |
| 108 | let handle; |
| 109 | try { |
| 110 | handle = await getHandle(dest); |
| 111 | await func(handle); |
| 112 | } finally { |
| 113 | if (handle) { |
| 114 | await handle.close(); |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | { |
| 120 | async function doTest() { |