lib/src/support/bus/queue/event/PushedToQueue.ts
garrettmills 16e5fa00aa
Some checks failed
continuous-integration/drone/push Build is failing
Implement queue work and listen commands
2022-01-27 10:34:01 -06:00

19 lines
490 B
TypeScript

import {Event, Queueable, ShouldQueue} from '../../types'
import {uuid4} from '../../../../util'
/**
* Event fired after an item is pushed to the queue.
*/
export class PushedToQueue<T extends ShouldQueue<Queueable>> implements Event {
public readonly eventName = '@extollo/lib.PushedToQueue'
public readonly eventUuid = uuid4()
public readonly shouldBroadcast = true
constructor(
public readonly item: T,
public readonly queueName: string,
) {}
}