Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does System.Concurrency.AsyncLock do?

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

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

like image 611
Mitten.O Avatar asked Nov 06 '22 14:11

Mitten.O


1 Answers

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

You might wish to confirm with the RX team.

like image 82
Judah Gabriel Himango Avatar answered Nov 15 '22 08:11

Judah Gabriel Himango