Type Alias WithResolvers<T, E>

WithResolvers: {
    reject: (reason: E) => void;
    resolve: (value: T) => void;
    task: Task<T, E>;
}

Type returned by calling Task.withResolvers

Type Parameters

  • T
  • E

Type declaration

  • reject: (reason: E) => void
  • resolve: (value: T) => void
  • task: Task<T, E>