ember-concurrency
ember-concurrency copied to clipboard
Last.running is not ok
Hi,
If I am not wrong I think that task.get('lastRunning')
should be the same as task.get('last')
if the state of the last task is running. I upload a screenshot showing the problem.
Thanks!
As far as I understand, It will happen when there are multiple request. Suppose you are executing the task by clicking on button. And if you click the button multiple time and the first request has yet to be resolved, then this will occur. Because every thing is inside run loop. You can verify it by doing console.log and printing the task.
If you want to cancel the previous operation, you can use restartable in that case.