串口同步模式和异步模式_通过unitask的异步装饰器模式高级技术扩展unitywebrequest...

串口同步模式和异步模式

It’s been a few months since we released UniTask v2, and we’re now at version 2.0.31, GitHub’s Star is achieved over 1100. We believe it is stable and will be used in production.

从我们发布UniTask v2到现在已经有几个月了,现在我们的版本是2.0.31,GitHub的Star达到了1100以上。我们相信它是稳定的,可以在生产中使用。

For more information on UniTask v2, see this article - UniTask v2 — Zero Allocation async/await for Unity, with Asynchronous LINQ.

有关UniTask v2的更多信息,请参见本文-UniTask v2 —使用异步LINQ对Unity进行零分配async / await

With the introduction of async/await, it is possible to implement new designs. Let’s take UnityWebRequest as an example of an asynchronous, pluggable and extensible design.

通过引入异步/等待,可以实现新的设计。 让我们以UnityWebRequest作为异步,可插入和可扩展设计的示例。

I will introduce it under the name async decorator pattern, but it is commonly known as Middleware.

我将以异步装饰器模式的名称介绍它,但它通常称为中间件。

It is a common design, mainly on the server side, implemented as a Filter in ASP.NET Core, Middleware in node.js (Express) and React, WSGI in Python, and MagicOnion. This is a very powerful design pattern and is also useful in client side.

这是一种常见的设计,主要在服务器端,在ASP.NET Core中作为过滤器,在node.js(Express)和React中作为中间件实现,在Python中为WSGI和MagicOnion实现。 这

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值