From 1599de57b53c78ac05965fe7038f3a8d67c1a3c0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 21 Aug 2018 15:01:54 +0200 Subject: skip frames --- app/relay/queue.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/relay/queue.js') diff --git a/app/relay/queue.js b/app/relay/queue.js index 8cd6f61..5e5a8a6 100644 --- a/app/relay/queue.js +++ b/app/relay/queue.js @@ -32,6 +32,9 @@ export class Queue { remove_task(task){ this.a = this.a.filter(t => t.id !== task.id) } + add_next_task(){ + return this.a.unshift() + } get_next_task(){ return this.a.shift() } -- cgit v1.2.3-70-g09d2