Commit 952accc
committed
feat: add async/await support and error handling for I/O operations in README and main.mbt
- Introduced async support for `readFile`, `readDir`, `exec`, and `fetch` functions.
- Updated README with examples demonstrating async usage and error handling.
- Modified `main.mbt` to reflect new async examples for `exec` and `fetch` operations.1 parent 227fdb5 commit 952accc
2 files changed
Lines changed: 49 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
13 | 54 | | |
14 | | - | |
15 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
16 | 58 | | |
| 59 | + | |
17 | 60 | | |
18 | 61 | | |
19 | 62 | | |
20 | 63 | | |
21 | 64 | | |
22 | 65 | | |
| 66 | + | |
23 | 67 | | |
24 | 68 | | |
25 | 69 | | |
26 | 70 | | |
27 | 71 | | |
| 72 | + | |
28 | 73 | | |
29 | 74 | | |
30 | 75 | | |
| |||
51 | 96 | | |
52 | 97 | | |
53 | 98 | | |
54 | | - | |
| 99 | + | |
55 | 100 | | |
56 | 101 | | |
57 | 102 | | |
| |||
120 | 165 | | |
121 | 166 | | |
122 | 167 | | |
123 | | - | |
124 | 168 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | | - | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
0 commit comments