博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2023年5月29日

摘要: 以下代码演示了如何让一个线程池线程立即调用回调方法,以后每 2 秒调用一次: internal static class TimerDemo { private static Timer s_timer; public static void Main() { Console.WriteLine(" 阅读全文

posted @ 2023-05-29 13:51 qianyz 阅读(9) 评论(0) 推荐(0) 编辑

摘要: 本文引用: 异步编程之Async,Await和ConfigureAwait的关系 - Leon_Chaunce - 博客园 (cnblogs.com) 走进异步世界-犯傻也值得分享:ConfigureAwait(false)使用经验分享 - 博客园团队 - 博客园 (cnblogs.com) Con 阅读全文

posted @ 2023-05-29 08:55 qianyz 阅读(71) 评论(0) 推荐(0) 编辑