coroutine 'HN.item' was never awaited
warning if quitting while loading
#26
Labels
bug
Something isn't working
[I think this only shows if using Python 3.12, but it's an untidy thing regardless]
If you fire up
oshit
and then escape out while the initial list of items is still loading, you'll see something like this:At first glance I imagine the issue is that
Items._load
is getting cancelled (it's an async worker), which in turn means that the requests that are still sat in the queue are getting abandoned, thus being left unawaited. Pragmatically this isn't a problem, we're fine with this. Technically though those corountines sat in semaphore-protectedgather
should be cancelled somehow, as the app quits.The text was updated successfully, but these errors were encountered: