Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PendingResponseEntry

A class representing a wait for an anticipated response packet from a peer.

Hierarchy

  • PendingResponseEntry

Index

Constructors

constructor

Properties

callbacks

callbacks: Function[] = []

An array of callbacks to be called synchronously when entry resolve.

jobs

jobs: Job[] = []

An array of tasks to resolve or reject.

resType

resType: ResponseType

timeout

timeout: number = 0

Methods

addCb

  • addCb(cb: Function): void

addJob

  • addJob(resolve: Function, reject: Function): void

reject

  • reject(err: any): void

resolve

  • resolve(result: any): void

setTimeout

  • setTimeout(timeout: number): void

Generated using TypeDoc