home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 590436368

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/682#issuecomment-590436368 https://api.github.com/repos/simonw/datasette/issues/682 590436368 MDEyOklzc3VlQ29tbWVudDU5MDQzNjM2OA== 9599 2020-02-24T17:00:21Z 2020-02-24T17:00:21Z OWNER

Interesting challenge: I would like to be able to "await" on queue.get() (with a timeout).

Problem is: queue.Queue() is designed for threading and cannot be awaited. asyncio.Queue can be awaited but is not meant to be used with threads.

https://stackoverflow.com/a/32894169 suggests using Janus, a thread-aware asyncio queue: https://github.com/aio-libs/janus

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
569613563  
Powered by Datasette · Queries took 1.063ms · About: github-to-sqlite