{"categories":[],"published":"2007-06-21 00:00:00","width":"100%","url":"https://lethevert.hatenadiary.org/entry/20070621/p3","title":"Java : Coroutine","author_name":"lethevert","version":"1.0","provider_name":"Hatena Blog","blog_url":"https://lethevert.hatenadiary.org/","blog_title":"lethevert is a programmer","description":"\u3055\u3063\u304d\u306e\u3092\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u6c4e\u7528\u5316\u3055\u305b\u3066\u3001\u30b3\u30eb\u30fc\u30c1\u30f3\u3092\u4f5c\u3063\u3066\u307f\u305f\u3002\u30b3\u30eb\u30fc\u30c1\u30f3\u306b\u3059\u308b\u3068\u3001\u30b9\u30ec\u30c3\u30c9\u304c\u7af6\u5408\u3059\u308b\u3053\u3068\u304c\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u6392\u4ed6\u5236\u5fa1\u3084\u3089\u306a\u3093\u3084\u3089\u8003\u3048\u308b\u306e\u306f\u305a\u3044\u3076\u3093\u697d\u306b\u306a\u308b\u3002 \u3053\u308c\u304c\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3002sleep\u3057\u3066\u3044\u308b\u6700\u4e2d\u306b\u4ed6\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u5272\u308a\u8fbc\u3093\u3067\u3044\u306a\u3044\u3053\u3068\u306b\u6ce8\u76ee\u3002 public class CoMain{ static Coroutine c; public static void main (String[] args){ init(); while (c.yield()); System.out.println(\"main finished\"); } static class Test impl\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flethevert.hatenadiary.org%2Fentry%2F20070621%2Fp3\" title=\"Java : Coroutine - lethevert is a programmer\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/lethevert/","provider_url":"https://hatena.blog","height":"190","image_url":null,"type":"rich"}