andywer / andywer/threads.js

completed promise does not resolve after terminate

オープン
#316 コメント 11 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
3.5k
フォーク
173
PR マージ指標
30日以内にマージされた PR はありません

説明

My code is waiting for the completed promise, eg `await this.pool.completed()` but after using `await this.pool.terminate(true)`, the completed promise still waits.
Is that intended? Shouldn't it either throw or resolve?

I can work around it with a second promise and using `Promise.any()` but that seems unintuitive.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。