@ende/async/lazy

ende add jsr:@ende/async

Version 2026.10.15 on JSR.

Exports

  • Lazy — A lazy value that is initialized at most once, with built-in deduplication of concurrent callers. Prevents the common race where two concurrent `get()` calls both trigger the initializer; only one initialization runs and all callers share the same promise.
  • LazyGetOptions — Options for Lazy.prototype.get.