
{"id":1607,"date":"2015-04-12T16:24:07","date_gmt":"2015-04-12T20:24:07","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=1607"},"modified":"2015-04-12T16:24:07","modified_gmt":"2015-04-12T20:24:07","slug":"asyncawait-to-some-it-up","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=1607","title":{"rendered":"Async\/await: to sum it up"},"content":{"rendered":"<p><b>async<\/b> methods are not executed asynchronously: see <a href=\"http:\/\/blogs.msdn.com\/b\/pfxteam\/archive\/2012\/04\/12\/async-await-faq.aspx\">Async\/await FAQ<\/a>, <i>Does using the \u201casync\u201d keyword on a method force all invocations of that method to be asynchronous?<\/i>).<\/p>\n<p><b>await task<\/b> is not the same as <code>task.Wait()<\/code>: <a href=\"http:\/\/blogs.msdn.com\/b\/pfxteam\/archive\/2012\/04\/12\/async-await-faq.aspx\">ibid<\/a>, <i>Is \u201cawait task;\u201d the same thing as \u201ctask.Wait()\u201d?<\/i>.<\/p>\n<p><b>ExecuteSynchronously()<\/b> <a href=\"http:\/\/blogs.msdn.com\/b\/pfxteam\/archive\/2012\/02\/07\/10265067.aspx\">may not actually execute synchronously<\/a>.<\/p>\n<p><b>TaskScheduler.Current<\/b> may be and frequently is different from <code>TaskScheduler.FromCurrentSynchronizationContext()<\/code>.<\/p>\n<p>The prosecution rests, your honor.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>async methods are not executed asynchronously: see Async\/await FAQ, Does using the \u201casync\u201d keyword on a method force all invocations of that method to be asynchronous?). await task is not <a href=\"https:\/\/ikriv.com\/blog\/?p=1607\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[8],"tags":[],"class_list":["entry","author-ikriv","post-1607","post","type-post","status-publish","format-standard","category-cs"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1607"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1607\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}