Skip to content

Comments

feat(async/unstable): add Lazy for once-only async init#7007

Merged
kt3k merged 3 commits intodenoland:mainfrom
tomas-zijdemans:lazy
Feb 20, 2026
Merged

feat(async/unstable): add Lazy for once-only async init#7007
kt3k merged 3 commits intodenoland:mainfrom
tomas-zijdemans:lazy

Conversation

@tomas-zijdemans
Copy link
Contributor

@tomas-zijdemans tomas-zijdemans commented Feb 16, 2026

A common pattern is having a value that is expensive to compute, should only be computed once, and should be shared across concurrent callers. Think: database connections or config loaded from disk (or fetched from remote).

@github-actions github-actions bot added the async label Feb 16, 2026
@tomas-zijdemans tomas-zijdemans changed the title feat(async/unstable): add class for once-only async init feat(async/unstable): add Lazy for once-only async init Feb 16, 2026
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.17%. Comparing base (6ab920d) to head (c6ddad5).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7007      +/-   ##
==========================================
- Coverage   94.20%   94.17%   -0.03%     
==========================================
  Files         618      619       +1     
  Lines       48802    48843      +41     
  Branches     8601     8605       +4     
==========================================
+ Hits        45973    45997      +24     
- Misses       2759     2777      +18     
+ Partials       70       69       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit c39ad8e into denoland:main Feb 20, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants