Stephen Cleary

Results 149 comments of Stephen Cleary

Oh, that's not provocative at all. :) For the last couple of years, I've been steering everyone I can towards Channels. I wouldn't say `AsyncProducerConsumerQueue` is deprecated (it's still supported),...

Could you submit complete code that reproduces the problem?

Sorry, I'm a bit confused. `TryCompleteFromCompletedTask` didn't change in the last upgrade. Could you post the code you're having trouble with?

Why do you need `waiterCount`? What does this provide to your code?

It looks like you're trying to create a kind of consumer/producer pattern with automatically-exiting and automatically-restarted consumers. In the `async` world, automatically exiting and automatically restarting is not usually necessary;...

Sorry, but are you absolutely sure this code will sometimes fail the assertion? If so, that would be a massive bug that no one else has reported yet.

My best guess is that the `callback` is being invoked before the `WebMethod` returns. This is legal but rare behavior, and asmx may not be expecting it. I can't say...

I've done a very similar thing in my own code. I haven't added it to AsyncEx yet because there's no template (e.g., T4) support when targeting modern platforms. Historically, I've...

In my experience, adding properties like this tends to encourage writing code that has race conditions. Can you explain in more detail why you need to check whether the producer...

@jaredthirsk Yes, I'm planning to add a `ReadAllAsync` method that allows consuming as an async stream.