Skip to content

TypeError: Cannot read property 'addJob' of null, js engine: hermes #100

Description

@mrojas18

i'm getting this error: TypeError: Cannot read property 'addJob' of null, js engine: hermes

alfter running the example code:

`import queue from 'react-native-job-queue'

queue.configure({onQueueFinish:(executedJobs:Job[])=>{
console.log("Queue stopped and executed",executedJobs)
}});
queue.addWorker(new Worker("testWorker",async(payload)=>{
return new Promise((resolve) => {
setTimeout(() => {
console.log(payload.text);
resolve();
}, payload.delay);});
}))
queue.addJob("testWorker",{text:"Job example palyoad content text",delay:5000})`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions