
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@technogise/rn-background-queue-processor
Advanced tools
Library which creates a background queue processor for react native apps.
A package with the help of which users will be able to add and process different kind of jobs in a queues with background persistent queue processing
This package does not have any prerequisites that need to be installed.
While we ensure to keep the library updated with newer and improved upcoming releases for React Native, our current version works well for React Native: v0.62.1
npm i @technogise/rn-background-queue-processor
Here is a Sample Application
constructor(dbAdapter) {
this.adapter = dbAdapter;
}
The dbAdapter here is an additional feature with which we enable our developers to use this queue with any db of their choice.
enqueue(job): Enqueues the job in the queue
dequeue(): Dequeues the job from queue on successful execution
peek(): To get the top job from Queue
getSize(): Returns the length of Queue
getItems(): Gives all items of Queue
failedJobsEnqueue() Enqueue all the Failed Jobs for processing
It is an abstract class which needs to be implemented by users of this package for easy use of any database for storing and processing the queues.
For the easier understanding and reference, we have added an InMemoryAdapter.js. Here is a list of all functions available in the Adapter class which can be used,
getAllItems(): To get all jobs in current queueremove(): Method to remove a job from current queueaddItem(item): Method to add a job in the current queuegetLength(): Method to get length of current queuegetTopItem(): Method to get the current job for processingaddFailedItems() Method to add failed itemsJob
While Job class has methods to get id, name and param of current job, we have made the execute, jobSuccess and jobFail function to be abstract for the developer so that he/she decides what to do on execute call.
The execute method can be used for performing the action in current job. For example, if the current job is an API call then developer can add the steps to fetch data from API in this execute ,method.
The jobSuccess method tells the developer defined action that needs to be taken if the API response is 200.
The jobFail method tells the developer defined action that needs to be taken if the API response is 4XX.
Worker class is a singleton class. In this class, user can process queue using process()
Communication with native
Made with :heart: from Technogise
You can explore our other works on GitHub
FAQs
Library which creates a background queue processor for react native apps.
We found that @technogise/rn-background-queue-processor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.