没有合适的资源?快使用搜索试试~ 我知道了~
首页asyncio Recipes.pdf
充分利用Asyncio,找到解决您最麻烦的Python编程问题的方法。这本书提供了一个实用的食谱集合,超越了在线资源和文档,为使用这个复杂的库提供指导。因此,您将看到如何提高应用程序性能和更快地运行计算密集型程序。 Asyncio配方从说明Asyncio库附带的原语的示例开始,并解释如何确定Asyncio是否是应用程序的正确选择。它演示了如何使用Asyncio在不使用多个线程的情况下获得性能提升,并识别常见错误以及如何防止它们。后面的章节包括错误处理、测试和调试。在本书的最后,您将了解Asyncio是如何在幕后运行的,并且有足够的信心为Asyncio First项目做出贡献。
资源详情
资源评论
资源推荐

asyncio
Recipes
A Problem-Solution Approach
—
Mohamed Mustapha Tahrioui
www.iebukes.com
www.iebukes.com

asyncio Recipes
A Problem-Solution Approach
MohamedMustaphaTahrioui
www.iebukes.com
www.iebukes.com

asyncio Recipes
ISBN-13 (pbk): 978-1-4842-4400-5 ISBN-13 (electronic): 978-1-4842-4401-2
https://doi.org/10.1007/978-1-4842-4401-2
Copyright © 2019 by Mohamed Mustapha Tahrioui
is work is subject to copyright. All rights are reserved by the Publisher, whether the whole
or part of the material is concerned, specically the rights of translation, reprinting, reuse of
illustrations, recitation, broadcasting, reproduction on microlms or in any other physical
way, and transmission or information storage and retrieval, electronic adaptation, computer
software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a
trademark symbol with every occurrence of a trademarked name, logo, or image we use the
names, logos, and images only in an editorial fashion and to the benet of the trademark
owner, with no intention of infringement of the trademark.
e use in this publication of trade names, trademarks, service marks, and similar terms,
even if they are not identied as such, is not to be taken as an expression of opinion as to
whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the
date of publication, neither the authors nor the editors nor the publisher can accept any
legal responsibility for any errors or omissions that may be made. e publisher makes no
warranty, express or implied, with respect to the material contained herein.
Managing Director, Apress Media LLC: Welmoed Spahr
Acquisitions Editor: Celestin Suresh John
Development Editor: James Markham
Coordinating Editor: Aditee Mirashi
Cover designed by eStudioCalamar
Cover image designed by Freepik (www.freepik.com)
Distributed to the book trade worldwide by Springer Science+Business Media NewYork,
233 Spring Street, 6th Floor, NewYork, NY 10013. Phone 1-800-SPRINGER, fax (201)
348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress
Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business
Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit http://www.
apress.com/rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook
versions and licenses are also available for most titles. For more information, reference our
Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is
available to readers on GitHub via the book’s product page, located at www.apress.com/
978-1-4842-4400-5. For more detailed information, please visit http://www.apress.com/
source-code.
Printed on acid-free paper
MohamedMustaphaTahrioui
Darmstadt, Hessen, Germany
www.iebukes.com

For my beloved mother and father.
www.iebukes.com

v
Chapter 1: Preparing for the Recipes ���������������������������������������������������1
What Is Asyncio? ��������������������������������������������������������������������������������������������������� 1
What Is This Book’s Approach to asyncio? ������������������������������������������������������������2
Chapter 2: Working with Event Loops ���������������������������������������������������5
Locating the Currently Running Loop ��������������������������������������������������������������������6
Problem �����������������������������������������������������������������������������������������������������������6
Solution �����������������������������������������������������������������������������������������������������������6
How It Works ���������������������������������������������������������������������������������������������������7
Creating a New Loop Instance ������������������������������������������������������������������������������8
Problem �����������������������������������������������������������������������������������������������������������8
Solution �����������������������������������������������������������������������������������������������������������9
How It Works ���������������������������������������������������������������������������������������������������9
Attaching a Loop to the Thread Problem �������������������������������������������������������������11
Solution ���������������������������������������������������������������������������������������������������������11
How It Works �������������������������������������������������������������������������������������������������12
Table of Contents
About the Author �������������������������������������������������������������������������������xix
About the Technical Reviewer �����������������������������������������������������������xxi
Acknowledgments ���������������������������������������������������������������������������xxiii
Introduction �������������������������������������������������������������������������������������� xxv
剩余329页未读,继续阅读

















iebukes
- 粉丝: 9
- 资源: 134
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- ARM Cortex-A(armV7)编程手册V4.0.pdf
- ABB机器人保养总结解析.ppt
- 【超详细图解】菜鸡如何理解双向链表的python代码实现
- 常用网络命令的使用 ipconfig ping ARP FTP Netstat Route Tftp Tracert Telnet nslookup
- 基于单片机控制的DC-DC变换电路
- RS-232接口电路的ESD保护.pdf
- linux下用time(NULL)函数和localtime()获取当前时间的方法
- Openstack用户使用手册.docx
- KUKA KR 30 hA,KR 60 hA机器人产品手册.pdf
- Java programming with JNI
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0