{"url":"https://ryuichi1208.hateblo.jp/entry/2025/06/04/000000","blog_title":"\u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2025%2F06%2F04%2F000000\" title=\"\u3010Python\u3011asyncio\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9 - \u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","width":"100%","provider_url":"https://hatena.blog","description":"import asyncio class UnsafeCounter: def __init__(self): self.count = 0 async def increment(self): current = self.count await asyncio.sleep(0.001) # \u308f\u3056\u3068\u6587\u8108\u5207\u66ff\u3092\u8a98\u767a self.count = current + 1 async def main(): counter = UnsafeCounter() tasks = [asyncio.create_task(counter.increment()) for _ in range(1000)] \u2026","categories":[],"title":"\u3010Python\u3011asyncio\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9","height":"190","image_url":null,"published":"2025-06-04 00:00:00","blog_url":"https://ryuichi1208.hateblo.jp/","author_name":"ryuichi1208","author_url":"https://blog.hatena.ne.jp/ryuichi1208/"}