Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OnceTask

A task that wraps another task and ensures it is run only once, regardless of how many times run is called.

This allows you to implement a kind of barrier synchronization.

Hierarchy

  • OnceTask

Implements

Index

Constructors

constructor

Methods

cancel

  • cancel(): void

logDependencies

  • logDependencies(): void

name

  • name(): string

run

  • run(): Promise<void>

setParent

  • setParent(parentTask: Task): void

Generated using TypeDoc