◐ Shell
clean mode source ↗

async_hooks: remove deprecated example · nodejs/node@a6986fe

Original file line numberDiff line numberDiff line change

@@ -615,14 +615,6 @@ asyncResource.asyncId();

615615
616616

// Return the trigger ID for the AsyncResource instance.

617617

asyncResource.triggerAsyncId();

618-
619-

// Call AsyncHooks before callbacks.

620-

// Deprecated: Use asyncResource.runInAsyncScope instead.

621-

asyncResource.emitBefore();

622-
623-

// Call AsyncHooks after callbacks.

624-

// Deprecated: Use asyncResource.runInAsyncScope instead.

625-

asyncResource.emitAfter();

626618

```

627619
628620

#### new AsyncResource(type[, options])