{"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffunnelbit.hatenablog.com%2Fentry%2F2025%2F03%2F12%2F200414\" title=\"Kotlin coroutines \u3067\u300c\u51e6\u7406\u3092n\u79d2\u5f85\u3063\u3066\u3082\u7d42\u308f\u3089\u306a\u304b\u3063\u305f\u3089\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u300d - \u2517\u2510\uff1c(\u055e\u0a0a\u055e)\uff1e\u250c\u251b\" 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/funnelbit/","description":"withTimeout \u304c\u4f7f\u3048\u308b\u3002kotlinlang.org import kotlinx.coroutines.* suspend fun fetchText(): String { delay(2000) return \"text\" } fun main() { runBlocking { runCatching { withTimeout(1000) { fetchText() } }.onSuccess { println(\"$it\") }.onFailure { println(\"$it\") } } } \u3053\u3053\u3067\u8a66\u305b\u307e\u3059","categories":[],"height":"190","url":"https://funnelbit.hatenablog.com/entry/2025/03/12/200414","blog_url":"https://funnelbit.hatenablog.com/","published":"2025-03-12 20:04:14","blog_title":"\u2517\u2510\uff1c(\u055e\u0a0a\u055e)\uff1e\u250c\u251b","type":"rich","title":"Kotlin coroutines \u3067\u300c\u51e6\u7406\u3092n\u79d2\u5f85\u3063\u3066\u3082\u7d42\u308f\u3089\u306a\u304b\u3063\u305f\u3089\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u300d","version":"1.0","width":"100%","image_url":null,"author_name":"funnelbit","provider_name":"Hatena Blog"}