GitShow/sindresorhus/sleep-synchronously
sindresorhus

sleep-synchronously

Block the main thread for a given amount of time

by sindresorhus
Star on GitHubForknpm

JavaScript

128 stars7 forks2 contributorsQuiet · 5mo agoSince 2020v2.0.0MIT

Meet the team

See all 2 on GitHub →
sindresorhus
sindresorhus7 contributions
Richienb
Richienb1 contribution

Languages

View on GitHub →
JavaScript79.2%
TypeScript20.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

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

Recent fixes

View closed PRs →
birneee
Reuse buffer and return early if milliseconds <= 0MergedPR
birneee · 5mo ago
jimmywarting
CorrectionsClosedIssue

It does not work in the browser. Well, it can work in browsers, but not in the main thread. Web Workers can still use this... but it also requires that you add some few response headers, so it could be a good idea to link to: Security requirement

jimmywarting · 3y ago
Richienb
Changes to `SharedArrayBuffer`ClosedIssue

May be worth mentioning in the readme the changes in Chrome 91+ which enforce much stronger cross-site security which makes unavailable. https://github.com/tc39/ecma262/issues/1435

Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/sleep-synchronously. Description: Block the main thread for a given amount of time Stars: 128, Forks: 7. Primary language: JavaScript. Languages: JavaScript (79.2%), TypeScript (20.8%). License: MIT. Latest release: v2.0.0 (5y ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb.

·@ofershap

Replace github.com with gitshow.dev