首页> 外文期刊>MSDN Magazine >Unit Testing Asynchronous Code: Three Solutions for Better Tests
【24h】

Unit Testing Asynchronous Code: Three Solutions for Better Tests

机译:单元测试异步代码:更好测试的三种解决方案

获取原文
获取原文并翻译 | 示例

摘要

Asynchronous programming has become more and more important during the last decade. Whether for CPU-based parallelism or IO-based concurrency, developers are employing asynchrony to help make the most of the resources available and, ultimately, do more with less. More responsive client applications and more scalable server applications are all within reach. Software developers have learned a lot of design patterns for effectively building synchronous functionality, but best practices for designing asynchronous software are relatively new, though the support provided by programming languages and libraries for parallel and concurrent programming has dramatically improved with the release of the Microsoft .NET Framework 4 and 4.5. While there's already quite a lot of good advice for using the new techniques (see "Best Practices in Asynchronous Programming" at bit.ly/1ulDCil and "Talk: Async Best Practices" at bit.ly/1DsFuMi), best practices for designing the internal and external APIs for applications and libraries with language features like async and await and the Task Parallel Library (TPL) are still unknown to many developers.
机译:在过去的十年中,异步编程变得越来越重要。无论是基于CPU的并行性还是基于IO的并发性,开发人员都在利用异步来帮助您利用最多的资源,并最终以更少的资源完成更多的工作。响应能力更强的客户端应用程序和可伸缩性更高的服务器应用程序都可触及。软件开发人员已经学到了许多用于有效构建同步功能的设计模式,但是设​​计异步软件的最佳做法相对较新,尽管随着Microsoft的发布,编程语言和库对并行和并发编程提供的支持已大大改善。 NET Framework 4和4.5。尽管已经有很多使用新技术的好建议(请参阅bit.ly/1ulDCil上的“异步编程最佳实践”和bit.ly/1DsFuMi上的“对话:异步最佳实践”),但有关设计新技术的最佳实践。许多开发人员仍不知道具有异步和等待等语言功能的应用程序和库的内部和外部API,以及任务并行库(TPL)。

著录项

  • 来源
    《MSDN Magazine》 |2014年第11期|22-242628|共5页
  • 作者

    Sven Grand;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号