TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Python micro event loop library (~250 LOC)

59 点作者 tarruda3 个月前

3 条评论

vram222 个月前
It&#x27;s 736 LOC now.<p>Last 2 lines, 735 and 736:<p><pre><code> # Start the event loop with the main coroutine event_loop(main())</code></pre>
评论 #43203337 未加载
评论 #43203533 未加载
dnadler2 个月前
I haven’t kept up with python too much over the past year or two and learned a couple new things from this code. Namely, match&#x2F;case and generic class typing. Makes me wonder what else is new, off to the python docs!
评论 #43208111 未加载
somesun2 个月前
very good example to learn async , will try it