{"title":" Event.wrap_abort \u3092 \u03c0\u8a08\u7b97 \u3067\u8868\u73fe\u3057\u3066\u307f\u308b \u305d\u306e2","url":"https://keigoi.hatenadiary.org/entry/20081106/p3","author_name":"keigoi","type":"rich","version":"1.0","width":"100%","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkeigoi.hatenadiary.org%2Fentry%2F20081106%2Fp3\" title=\" Event.wrap_abort \u3092 \u03c0\u8a08\u7b97 \u3067\u8868\u73fe\u3057\u3066\u307f\u308b \u305d\u306e2 - keigoi\u306e\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>","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/keigoi/","blog_url":"https://keigoi.hatenadiary.org/","blog_title":"keigoi\u306e\u65e5\u8a18","published":"2008-11-06 00:00:00","height":"190","categories":["Formal","OCaml"],"description":"\u3072\u3068\u3064\u524d\u306e\u30a8\u30f3\u30c8\u30ea \u3067\u30c6\u30ad\u30c8\u30fc\u306b\u4f5c\u3063\u305f abort \u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u3066\u3001OCaml\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30b3\u30fc\u30c9\u4f8b\u3092\u8ffd\u3063\u3066\u307f\u308b\u3002 open Event let start_server () = let in_ch = new_channel () in let rec loop () = let (x, ret_ch, nack_ch) = sync (receive in_ch) in loop (select [send ret_ch (x * 2); receive nack_ch]) in ignore (Thread.create loop ()); in_ch let calc3 in_ch x\u2026","provider_url":"https://hatena.blog"}