GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: remove _Node.js style callback_ · nodejs/node@1044baf

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • errors.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+5-6Lines changed: 5 additions & 6 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,11 @@ exactly how errors raised by those methods are propagated.
127127
<!--type=misc-->
128128

129129
Most asynchronous methods exposed by the Node.js core API follow an idiomatic
130-
pattern referred to as an _error-first callback_ (sometimes referred to as
131-
a _Node.js style callback_). With this pattern, a callback function is passed
132-
to the method as an argument. When the operation either completes or an error
133-
is raised, the callback function is called with
134-
the `Error` object (if any) passed as the first argument. If no error was
135-
raised, the first argument will be passed as `null`.
130+
pattern referred to as an _error-first callback_. With this pattern, a callback
131+
function is passed to the method as an argument. When the operation either
132+
completes or an error is raised, the callback function is called with the
133+
`Error` object (if any) passed as the first argument. If no error was raised,
134+
the first argument will be passed as `null`.
136135

137136
```js
138137
const fs = require('fs');

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.