Skip to content

Class DefaultRangePolicy

🏭 Constructors

constructor

ts
new DefaultRangePolicy(rangeThreshold: number, concurrency: number): DefaultRangePolicy

Parameters

  • rangeThreshold: number
  • concurrency: number

Return Type

  • DefaultRangePolicy

Defined in: packages/file-transfer/rangePolicy.ts:31

🏷️ Properties

concurrency readonly

ts
concurrency: number

Defined in: packages/file-transfer/rangePolicy.ts:31

rangeThreshold readonly

ts
rangeThreshold: number

Defined in: packages/file-transfer/rangePolicy.ts:31

🔧 Methods

computeRanges

ts
computeRanges(total: number): Range[]

Parameters

  • total: number

Return Type

  • Range[]

Defined in: packages/file-transfer/rangePolicy.ts:33