Stephen Cleary

Results 149 comments of Stephen Cleary

I'm still planning to eventually fix this, and I still haven't had time. As noted previously, my primary hacking time is during conferences, which haven't happened since covid hit.

How would you expect to use this? I'm wondering if there is a more appropriate coordination primitive. Nito.AsyncEx already has support for condition variables and monitors (and auto-reset events), which...

I'm not clear what the request is here. If it's being ignored, then the exception will be ignored, so how does it matter whether it's unwrapped or not?

There are some APIs in this library (like `WaitAndUnwrapException`) that are not really recommended, but included either for historical reasons or because they've got some sharp corners in their implementation....

A custom thread pool is out-of-scope for this (async-oriented) library. Generally, most devs handle this by boosting the minimum thread pool count and then using `ConcurrentExclusiveSchedulerPair` (which migrated into the...

Are you using `ExecuteOnCallingThread`? Because by default `AsyncLazy` will execute your factory delegate on a thread pool thread.

> I want to find out which tasks are out running. Unfortunately, AsyncEx can't help you with that, since it doesn't have that information. > the _outstandingOperations is not matching...

Ah, I forgot that it's also used in `Enqueue`. > I decide to forcefully decrease _outstandingOperations when I believe my program should exit, using reflection I strongly recommend against this....

If I add this, it certainly won't be named `Count`. ;) That would encourage misuse. I'd probably call it `ApproximateCount`.

Yes, certainly. It could use an update to support async enumerables. In the meantime, you may want to check out [Channels](https://www.nuget.org/packages/System.Threading.Channels). They are the most modern implementation of an async...