queue-bull-component
![LoopBack](https://github.com/loopbackio/loopback-next/raw/master/docs/site/imgs/branding/Powered-by-LoopBack-Badge-(blue)-@2x.png)
Installation
Install BullQueueComponent using npm
;
$ [npm install | yarn add] queue-bull-component
Basic Use
Configure and load BullQueueComponent in the application constructor
as shown below.
import {BullQueueComponent, BullQueueComponentOptions, DEFAULT_QUEUE_BULL_COMPONENT_OPTIONS} from 'queue-bull-component';
export class MyApplication extends BootMixin(ServiceMixin(RepositoryMixin(RestApplication))) {
constructor(options: ApplicationConfig = {}) {
const opts: BullQueueComponentOptions = DEFAULT_QUEUE_BULL_COMPONENT_OPTIONS;
this.configure(BullQueueComponentBindings.COMPONENT).to(opts);
});
this.component(BullQueueComponent);
}
}