API Reference / rankMomentsAsync · function

Function: rankMomentsAsync()

function rankMomentsAsync(
   opts, 
   score, 
chunk?): Promise<RankedMoment[]>;

Defined in: scan.ts:83

rankMoments that yields to the event loop every chunk samples, so a long main-thread scan does not freeze the UI. Same result as rankMoments.

Parameters

opts

RankOptions

score

(jd) => number

chunk?

number = 256

Returns

Promise<RankedMoment[]>