Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

Type aliases

Function

Function: <T>(key: string, fn: () => Promise<T>) => Promise<T>

Prevents multiple active promises for a given key.

param

The key to dedupe

param

A function that resolves to a promise.

Type declaration

    • <T>(key: string, fn: () => Promise<T>): Promise<T>
    • Type parameters

      • T

      Parameters

      • key: string
      • fn: () => Promise<T>
          • (): Promise<T>
          • Returns Promise<T>

      Returns Promise<T>

Generated using TypeDoc