You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This (and the method definition) seem to say that dequeue may return undefined, but when dequeue is actually used this is not the case (because the queue size is checked earlier in that method):
I'm not sure the best way to resolve this so created an issue about it instead. Would dequeue ever be expected to return undefined under normal usage? If not, should its result ever be undefined?
The text was updated successfully, but these errors were encountered:
The only line in the project that is "partially covered" is line 37 in
priority-queue.ts
:p-queue/source/priority-queue.ts
Lines 35 to 38 in 0131f7f
This (and the method definition) seem to say that
dequeue
may returnundefined
, but whendequeue
is actually used this is not the case (because the queue size is checked earlier in that method):p-queue/source/index.ts
Line 168 in 4b4d2fa
I'm not sure the best way to resolve this so created an issue about it instead. Would
dequeue
ever be expected to returnundefined
under normal usage? If not, should its result ever beundefined
?The text was updated successfully, but these errors were encountered: