File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.1" ,
4
4
"description" : " Module to split long-running tasks into chunks with limited budget" ,
5
5
"keywords" : [
6
+ " scheduler" ,
6
7
" chunks" ,
7
8
" budget" ,
8
9
" task" ,
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import { idleCallbackChunkScheduler } from './idleCallbackChunkScheduler';
4
4
import { immediateChunkScheduler } from './immediateChunkScheduler' ;
5
5
import { timeoutChunkScheduler } from './timeoutChunkScheduler' ;
6
6
7
- function getChunkScheduler ( kind : ChunkSchedulerType ) : ChunkScheduler {
7
+ function getChunkScheduler ( type : ChunkSchedulerType ) : ChunkScheduler {
8
8
let chunkScheduler : ChunkScheduler | null = null ;
9
9
10
- switch ( kind ) {
10
+ switch ( type ) {
11
11
case 'animationFrame' :
12
12
chunkScheduler = animationFrameChunkScheduler ;
13
13
break ;
@@ -32,7 +32,7 @@ function getChunkScheduler(kind: ChunkSchedulerType): ChunkScheduler {
32
32
break ;
33
33
34
34
default :
35
- chunkScheduler = kind ;
35
+ chunkScheduler = type ;
36
36
}
37
37
38
38
return chunkScheduler || timeoutChunkScheduler ;
You can’t perform that action at this time.
0 commit comments