{"title":"\u5207\u7b26\u3092\u901a\u3057\u305f\u3068\u304d\u3060\u3051\u901a\u308c\u308b\u6539\u672d\u53e3Ractor","description":"\u524d\u56de\u3001Ractor.select\u3067take\u3068recv\u3092\u4e21\u65b9\u5f85\u3066\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002 \u3053\u308c\u3092\u4f7f\u3063\u3066\u5207\u7b26\u3092\u901a\u3057\u305f\u3068\u304d\u3060\u3051\u901a\u308c\u308b\u6539\u672d\u53e3\u3092\u4f5c\u308a\u307e\u3059\u3002 \u5b8c\u6210\u5f62 \u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3092\u5f85\u3064Ractor = Ractor.new { loop { Ractor.yield gets.chomp } } \u6539\u672d\u53e3Ractor = Ractor.new(\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3092\u5f85\u3064Ractor) do |\u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b| \u30b2\u30fc\u30c8 = :\u9589 loop do # \u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b\u3068\u81ea\u8eab\u3078\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4e21\u65b9\u5f85\u3064 \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u7a2e\u985e, \u53d7\u4fe1\u3057\u305f\u30e1\u30c3\u30bb\u30fc\u30b8 = Ractor.select \u30ad\u30fc\u30dc\u30fc\u30c9\u5165\u529b, self if \u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u7a2e\u985e\u2026","height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2020%2F05%2F02%2F235252\" title=\"\u5207\u7b26\u3092\u901a\u3057\u305f\u3068\u304d\u3060\u3051\u901a\u308c\u308b\u6539\u672d\u53e3Ractor - @ledsun blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","url":"https://ledsun.hatenablog.com/entry/2020/05/02/235252","image_url":null,"width":"100%","type":"rich","published":"2020-05-02 23:52:52","categories":["Ractor","Ruby","\u6280"],"blog_url":"https://ledsun.hatenablog.com/","version":"1.0","blog_title":"@ledsun blog","author_name":"ledsun","author_url":"https://blog.hatena.ne.jp/ledsun/"}