这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jgautier
Copy link
Contributor

@jgautier jgautier commented Jun 4, 2020

After looking through the code I thought it might be better to wait for the promises to resolve instead of checking the count on a timer. I also added a regression which I tested by checking out the 2.0.0 version of tarn.js and writing this test that passes, then I checked out the version before my other fix and see that it failed, and now it is passing on this commit and the previous fix.

@elhigu
Copy link
Collaborator

elhigu commented Jun 4, 2020

There might have been a reason why I didn't write the code like that originally... but looks like all the tests are passing so this should be good. Anyways I need to look to this more carefully, before merging.

@elhigu
Copy link
Collaborator

elhigu commented Jun 4, 2020

I might have been worried about race conditions, where some of the validations are added to the array later on because of some delay somewhere or something like that. So at least code creating those validation promises should be looked through and checked that it is not possible that more validations are added to that array if .destroy() has been called.

@kibertoad
Copy link
Contributor

@elhigu Should we rebase and merge this?

@elhigu
Copy link
Collaborator

elhigu commented Jan 17, 2021

validations are added to the array later on because of some delay somewhere or something like that

Probably the part of code that worried me is going to change to be more robust. Better not to merge this yet.

@kibertoad
Copy link
Contributor

@elhigu Where are we standing with this?

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

Successfully merging this pull request may close these issues.

3 participants