{"author_url":"https://blog.hatena.ne.jp/gsf_zero1/","height":"190","categories":["golang"],"url":"https://devlights.hatenablog.com/entry/2023/01/27/073000","type":"rich","author_name":"gsf_zero1","title":"Go\u30e1\u30e2-286 (context.WithCancel\u3068time.AfterFunc\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u51e6\u7406)","published":"2023-01-27 07:30:00","image_url":"https://go.dev/blog/gopher/header.jpg","blog_title":"\u3044\u308d\u3044\u308d\u5099\u5fd8\u9332\u65e5\u8a18","provider_name":"Hatena Blog","version":"1.0","description":"\u6982\u8981 \u30b5\u30f3\u30d7\u30eb \u53c2\u8003\u60c5\u5831 \u6982\u8981 \u4ee5\u4e0b\u3001\u81ea\u5206\u7528\u306e\u30e1\u30e2\u3067\u3059\u3002 \u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f7f\u3063\u305f\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u51e6\u7406\u306f context.WithTimeout \u3092\u4f7f\u3063\u305f\u3089\u51fa\u6765\u308b\u306e\u3067\u3059\u304c \u305d\u308c\u4ee5\u5916\u306b\u3082 time.AfterFunc \u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u51e6\u7406\u3059\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002 \u540c\u3058\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u308b\u3068\u304d\u306b\u306f\u307e\u3060\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u6642\u9593\u304c\u6c7a\u307e\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u3068\u304d\u306a\u3069\u306b\u4f7f\u3063\u305f\u308a\u3067\u304d\u307e\u3059\u3002 \u77e5\u3063\u3066\u304a\u304f\u3068\u4fbf\u5229\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3069\u3061\u3089\u3082\u4f7f\u3044\u6240\u306b\u3088\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002 1.20\u3067 context \u306b CancelCause \u304c\u5897\u3048\u308b\u3053\u3068\u306b\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u4f7f\u3046\u3068\u304d\u304c\u5897\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u30b5\u30f3\u30d7\u30eb package gorouti\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevlights.hatenablog.com%2Fentry%2F2023%2F01%2F27%2F073000\" title=\"Go\u30e1\u30e2-286 (context.WithCancel\u3068time.AfterFunc\u3067\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u51e6\u7406) - \u3044\u308d\u3044\u308d\u5099\u5fd8\u9332\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>","blog_url":"https://devlights.hatenablog.com/","provider_url":"https://hatena.blog","width":"100%"}