如下文所示,新的async with语句可以在进入/离开运行上下文(runtime context)时进行异步调用,而async for语句可以在迭代时进行异步调用。
基于12个网页-相关网页
在这个修订后的API中,运行上下文的调用是同步的:这个调用直到所调用的程序完成时才会结束。
In the revised API, the call to run a context is synchronous: the call does not complete until the called program completes.
在服务器环境内,常希望运行具有各自上下文的并发脚本。
In a server environment, you'll want to run concurrent scripts with each of them having its own context.
这个运行时上下文信息可以由容器或者客户机来设定。
This run-time context information can be set either by the container or by the client.
应用推荐