{"type":"rich","url":"https://blog.tmyt.jp/entry/2018/06/08/085513","blog_url":"https://blog.tmyt.jp/","version":"1.0","provider_url":"https://hatena.blog","blog_title":"tmyt\u306e\u3089\u304f\u304c\u304d","published":"2018-06-08 08:55:13","image_url":null,"width":"100%","categories":["\u96d1\u8a18"],"author_url":"https://blog.hatena.ne.jp/tmyt/","title":"TaskCompletionSource<T>\u304c\u899a\u3048\u3089\u308c\u306a\u3044","provider_name":"Hatena Blog","height":"190","description":".NET\u306eSystem.Threading.Tasks\u7a7a\u9593\u306b\u3001TaskCompletionSource<T>\u3063\u3066\u3044\u3046\u306e\u304c\u3042\u308a\u307e\u3059\u3002 TaskCompletionSource(TResult) \u30af\u30e9\u30b9 (System.Threading.Tasks) \u3053\u308c\u3092\u4f7f\u3046\u3068\u3001\u3053\u3046\u3044\u3046\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u307e\u3059\u3002 public Task Sleep(int milliseconds) { var source = new TaskCompletionSource<bool>(); var timer = new Timer(_ => { source.SetResult(true); }, null, millise\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmyt.jp%2Fentry%2F2018%2F06%2F08%2F085513\" title=\"TaskCompletionSource&lt;T&gt;\u304c\u899a\u3048\u3089\u308c\u306a\u3044 - tmyt\u306e\u3089\u304f\u304c\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"tmyt"}