Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
mfdebian and aduh95 authored Nov 18, 2024
commit 503f80f2acf04921f4a6c2c4fac6b9d88e9a798c
1 change: 1 addition & 0 deletions doc/api/timers.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ import { setImmediate as setImmediatePromise } from 'node:timers/promises';
const ac = new AbortController();
const signal = ac.signal;

// We do not `await` the promise so `ac.abort()` is called concurrently.
setImmediatePromise('foobar', { signal })
.then(console.log)
.catch((err) => {
Expand Down