destack.sh
docstemplatesblog
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Runtime
  5. Standard Library
  6. Web
  7. Node
  8. Systems
  9. Modules
  10. destack:async
  11. AsyncOnce
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
menu
Language
  1. Setup
  2. TypeScript
  3. TypeScript++
  4. Runtime
  5. Standard Library
  6. Web
  7. Node
  8. Systems
  9. Modules
  10. destack:async
  11. AsyncOnce
    1. Members
  12. Configuration
  13. Static Analysis
  14. Dynamic Analysis
  15. Deployment
Docs/Language/Standard Library/Modules/destack:async
mdtxt

AsyncOnce

import { AsyncOnce } from "destack:async";

One-time async execution state.

language/library/src/async/once.ds:8:18
1export class AsyncOnce {2    call(body: () => Promise<void>): Promise<void>;3    isCompleted(): boolean;4}

Members

call(body: () => Promise<void>): Promise<void>

Run body once.

isCompleted(): boolean

Return true after the body has completed.

discordxgithub
2026.8.3alpha