MCPcopy Create free account
hub / github.com/actionhero/node-resque / constructor

Method constructor

src/core/queue.ts:49–59  ·  view source on GitHub ↗
(options: QueueOptions, jobs: Jobs = {})

Source from the content-addressed store, hash-verified

47}
48export class Queue extends EventEmitter {
49 constructor(options: QueueOptions, jobs: Jobs = {}) {
50 super();
51
52 this.options = options;
53 this.jobs = jobs;
54
55 this.connection = new Connection(options.connection);
56 this.connection.on("error", (error) => {
57 this.emit("error", error);
58 });
59 }
60
61 async connect() {
62 return this.connection.connect();

Callers

nothing calls this directly

Calls 1

onMethod · 0.65

Tested by

no test coverage detected