frame-scheduling
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -6,5 +6,5 @@ export declare const P_LOWER = 1; | ||
export declare const P_IMPORTANT = 10; | ||
declare const _default: (callback: Function, {priority}?: { | ||
declare const _default: (callback: () => void, {priority}?: { | ||
priority?: number; | ||
}) => void; | ||
export default _default; |
@@ -8,2 +8,5 @@ "use strict"; | ||
} | ||
else if ("setImmediate" in context) { | ||
defer = setImmediate.bind(context); | ||
} | ||
else { | ||
@@ -25,4 +28,4 @@ defer = setTimeout.bind(context); | ||
var node = { | ||
next: null, | ||
value: value, | ||
next: null | ||
}; | ||
@@ -104,3 +107,3 @@ if (this.length === 0) { | ||
catch (e) { | ||
console.error(e); | ||
console.error(e); // tslint:disable-line | ||
} | ||
@@ -107,0 +110,0 @@ if (jobs.isEmpty()) { |
{ | ||
"name": "frame-scheduling", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Asynchronous start of functions in JS. Supports priority and interrupt execution every 16 milliseconds, to achieve 60fps.", | ||
@@ -5,0 +5,0 @@ "main": "lib/frameScheduling.js", |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"include": ["src/**/*", "tests/**/*"] | ||
"include": ["src/**/*"] | ||
} |
12225
9
283