Type alias Factory<T, U, V>

Factory<T, U, V>: ((state) => Promise<T>)

A promise factory that returns an individual poll request.

Type Parameters

  • T
  • U
  • V extends string

Type declaration

Typeparam

T - The resolved type of the factory's promises.

Typeparam

U - The rejected type of the factory's promises.

Typeparam

V - The type to extend the phases supported by a poll.