Commit a4a7175
authored
Support async operation handler resolver (#921)
- Let users define operationHandlers.resolver as a synchronous or
asynchronous function that returns a request handler
- Make installOperationHandlers and asynchronous function that awaits a
resolver promise (automatically wraps resolver with promise if needed)
- Update operation handlers middleware to handle an async
installOperationHandlers.1 parent 4e8bc84 commit a4a7175
2 files changed
+13
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 224 | + | |
| 225 | + | |
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
| |||
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
307 | | - | |
| 304 | + | |
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
| |||
324 | 321 | | |
325 | 322 | | |
326 | 323 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 324 | + | |
| 325 | + | |
331 | 326 | | |
332 | 327 | | |
333 | 328 | | |
| |||
0 commit comments