GitShow/sindresorhus/p-timeout
sindresorhus

p-timeout

Timeout a promise after a specified amount of time

by sindresorhus
Star on GitHubForknpm

JavaScript

302 stars36 forks15 contributorsQuiet · 9mo agoSince 2016v7.0.1MIT

Meet the team

See all 15 on GitHub →
sindresorhus
sindresorhus49 contributions
ronami
ronami3 contributions
BendingBender
BendingBender2 contributions
fregante
fregante2 contributions
jopemachine
jopemachine2 contributions
Kikobeats
Kikobeats2 contributions
buschtoens
buschtoens1 contribution
jonidelv
jonidelv1 contribution

Languages

View on GitHub →
JavaScript82%
TypeScript18%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
pscanf
Uncaught (in promise) TypeError: Illegal invocationClosedIssue

Upgrading from to , I get errors in my console: It seems the same error that #18 solved. I see in the diff that goes back to calling directly (instead of calling via ), so I'm guessing that's the issue. No idea what's the correct approach, though. Additional context My usage of is pretty vanilla: Screenshots of my console:

pscanf · 9mo ago
fregante
Node 18 upgrade improvementsClosedIssue

I just saw a couple node Node 18-related notes in the code. I'll add a couple more: Add support for in , even if unused locally https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1342 Use public fields instead of the constructor (this actually fixes the above issue automatically too) https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1993 Ensure that the type for matches these changes, since d.ts file is maintained manually

fregante · 9mo ago
SimonSiefke
parts of stack trace missing when promise rejectsClosedIssue

When passing a promise to pTimeout that rejects, ends at Example 1: Example 1 output: Example 2: Example 2 output: In Example 1, these parts are missing from :

SimonSiefke · 9mo ago
Structured data for AI agents

Repository: sindresorhus/p-timeout. Description: Timeout a promise after a specified amount of time Stars: 302, Forks: 36. Primary language: JavaScript. Languages: JavaScript (82%), TypeScript (18%). License: MIT. Latest release: v7.0.1 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, ronami, BendingBender, fregante, jopemachine, Kikobeats, buschtoens, jonidelv, kevva, zikaari and others.

·@ofershap

Replace github.com with gitshow.dev