Skip to content

Commit 238ba1f

Browse files
committedJan 22, 2024
Remove async marker from now sync srv.prepend
1 parent ef524b6 commit 238ba1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎node.js/core-services.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ Ensure to call `super.init()` to allow subclasses to register their handlers. Do
454454
### srv. prepend() {.method}
455455

456456
```tsx
457-
async function srv.prepend(()=>{...})
457+
function srv.prepend(()=>{...})
458458
```
459459

460460
Sometimes, you need to register handlers to run before handlers registered by others before. Use srv.prepend() to do so ´, for example like this:

0 commit comments

Comments
 (0)
Please sign in to comment.