Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to abort the queue #3

Open
geminiyellow opened this issue Nov 2, 2016 · 5 comments
Open

how to abort the queue #3

geminiyellow opened this issue Nov 2, 2016 · 5 comments

Comments

@geminiyellow
Copy link

@zackargyle thanks for your work.

and can you teach me how to interrupt the queue?

@zackargyle
Copy link
Owner

There is currently no way to abort or interrupt the queue. I'd be happy to review a PR if you'd like to add the functionality! I could also provide ideas on how to implement if you'd like like some assistance :)

@geminiyellow
Copy link
Author

👍

@ahmedtausif
Copy link

I am looking to abort queue. My scenario is after when user logout queue should be killed too.

@ahmedtausif
Copy link

ahmedtausif commented Feb 2, 2017

to implement abort queue can we add some redux state property to monitor. if its becomes invalid then clear queue? something like this:
...in async action
{
queue: ...,
callback:...,
toMonitor: 'session.isConnected' // just to say
}

... in redux-async-queue dequeue()
{
const state = getState();
const val = R.path(toMonitor.split('.'),state)
//if val is empty or invalid then set queue =[]
}

@geminiyellow
Copy link
Author

@zackargyle forgot this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants