摘要: Task.FromResult用来创建一个带返回值的、已完成的Task。 场景一:以同步的方式实现一个异步接口方法 比如有一个接口包含异步方法。 现在,需要以同步的方式实现该接口方法DoSthAsync,但要返回异步的结果。这正是Task.FromResult的用武之地。 以上,在实现类MyClas 阅读全文
posted @ 2016-10-14 18:21 特洛伊-Micro 阅读(13112) 评论(1) 推荐(2)
摘要: I believe I have gotten LibCurl to work with Visual Studio 2013 now. Persistence ftw! Although, after spending hours trying to solve these error messa 阅读全文
posted @ 2016-10-14 17:04 特洛伊-Micro 阅读(676) 评论(0) 推荐(0)