Skip to content

Event.resumed

Grant Carthew edited this page Nov 19, 2016 · 2 revisions

Event Details

Subject: Queue

Signature: (queueId, global)

Returns: queueId String

  • The Queue.id for the Queue object which resumed the queue.

Returns: global Boolean

  • A flag to indicate if the resume is global or local.

Example:

const Queue = require('rethinkdb-job-queue')
const q = new Queue()

q.on('resumed', (queueId, global) => {
  console.log('Queue resumed: ' + queueId)
  console.log('Resumed global: ' + global)
})

Description

The resumed event is raised when a Queue object has been resumed after calling the Queue.resume method. Use the global argument to determine if the resume is applying to the entire queue or just the local Queue object.

Main

How It Works

Contributing

API

Queue Methods

Queue Properties

Queue Events

Job Methods

Job Properties

Documentation

Clone this wiki locally