什么System.Concurrency。AsyncLock做什么?

时间:2021-07-23 06:55:46

The System.Reactive.dll adds a class AsyncLock to System.Concurrency. It has a single instance method, Wait, that takes an Action.

System.Reactive。dll将类异步时钟添加到system . concurrent。它有一个实例方法Wait,它执行一个操作。

The documentation page I found just tells it it pre-release documentation, so I ask here: What does this class do?

我找到的文档页面只是告诉它它是预发布文档,所以我在这里问:这个类做什么?

1 个解决方案

#1


1  

Looks like some sort of thread-safe queue that executes actions in sequential order. I see it's used in RX's schedulers.

看起来像某种线程安全的队列,按顺序执行操作。我看到它被用在RX的调度程序中。

You might wish to confirm with the RX team.

您可能希望与RX团队确认。

#1


1  

Looks like some sort of thread-safe queue that executes actions in sequential order. I see it's used in RX's schedulers.

看起来像某种线程安全的队列,按顺序执行操作。我看到它被用在RX的调度程序中。

You might wish to confirm with the RX team.

您可能希望与RX团队确认。