status-im / nim-chronos

Chronos - An efficient library for asynchronous programming
https://status-im.github.io/nim-chronos/docs/chronos
Apache License 2.0
353 stars 51 forks source link

asyncloop `isCounterLeaked` returns incorrect value? #431

Closed doongjohn closed 1 year ago

doongjohn commented 1 year ago

https://github.com/status-im/nim-chronos/blob/c546a4329cad426fc1deb32f3a7bca6ead4c2b2c/chronos/asyncloop.nim#L1546-L1551

it says Returns true if leak is detected, number of opened not equal to number of closed requests. However it returns true if number of opened is equal to number of closed requests.