Closed JavierLeon9966 closed 1 year ago
Recently I realized that interrupt
/safeRace
may not work correctly when the Await::ONCE
path is called. The PromiseState
in await-generator is not aware that the generator has been interrupted and may continue to call the handler again if cleanup is not fully executed.
This pull request is currently on hold due to SOF3/await-generator#200, which I find a bit challenging to reproduce minimally. Help would be appreciated if you would like to look into it as well.
Thanks for your contribution, but I have decided to stop maintaining this repo and archive it. await-std contains several unrelated features that don't really fit well in the same repo. If you would like to continue maintaining this repo, feel free to fork it. But I would recommend creating a virion dedicated for awaitEvent
instead.
This is due to the new feature Await::safeRace() which will allow us to clean the resolvers easily.