redux-async-queue icon indicating copy to clipboard operation
redux-async-queue copied to clipboard

how to abort the queue

Open geminiyellow opened this issue 8 years ago • 5 comments

@zackargyle thanks for your work.

and can you teach me how to interrupt the queue?

geminiyellow avatar Nov 02 '16 04:11 geminiyellow

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 :)

zackargyle avatar Nov 02 '16 05:11 zackargyle

👍

geminiyellow avatar Nov 02 '16 07:11 geminiyellow

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

ahmedtausif avatar Jan 31 '17 21:01 ahmedtausif

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 =[] }

ahmedtausif avatar Feb 02 '17 17:02 ahmedtausif

@zackargyle forgot this repo.

geminiyellow avatar Feb 03 '17 03:02 geminiyellow