Commit 03a2078
Update promise.wait to throw an error when timeout reached or interrupted (#723)
* Update promise.wait to throw an error when timeout reached or interrupted
* Revert some formatting changes
* Fix lint error
* Add test to demonstrate functionality
* Update lua/orgmode/utils/promise.lua
Co-authored-by: Kristijan Husak <husakkristijan@gmail.com>
---------
Co-authored-by: Kristijan Husak <husakkristijan@gmail.com>1 parent d4cc321 commit 03a2078
File tree
2 files changed
+27
-2
lines changed- lua/orgmode/utils
- tests/plenary/utils
2 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
266 | 267 | | |
267 | 268 | | |
268 | 269 | | |
| |||
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | | - | |
| 282 | + | |
282 | 283 | | |
283 | 284 | | |
284 | 285 | | |
| |||
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
291 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
292 | 303 | | |
293 | 304 | | |
294 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments