API Reference / rankMomentsAsync · function
Function: rankMomentsAsync()
function rankMomentsAsync(
opts,
score,
chunk?): Promise<RankedMoment[]>;
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
| Parameter | Type | Default value |
|---|---|---|
opts | RankOptions | undefined |
score | (jd) => number | undefined |
chunk | number | 256 |
Returns
Promise<RankedMoment[]>