AsyncEx icon indicating copy to clipboard operation
AsyncEx copied to clipboard

A helper library for async/await.

Results 74 AsyncEx issues
Sort by recently updated
recently updated
newest added

Fix #257 by tweaking what `AsyncLock.md` says about reentrance. Sorry I don't have anything more meaningful to contribute :(

Your documentation for `AsyncLock` [currently says](https://github.com/StephenCleary/AsyncEx/blob/18490a6492bbf1fa341d940f4518edce101c0495/doc/AsyncLock.md): > It's only _almost_ equivalent because the `lock` keyword permits reentrancy, which is not currently possible to do with an `async`-ready lock. Technically reentrancy...

### Description Hi! I am reporting an issue that I discovered after reading a comment by Servy [here](https://stackoverflow.com/questions/34393352/lazyt-without-exception-caching/72579523#comment128209603_72579523 "Lazy without exception caching"). In case the `factory` delegate of an `AsyncLazy`...

This is a minor clarification of the tooltip on `AsyncLazy` for when `RetryOnFailure` is specified.

Here is some my own extensions (maybe will be interested to join with Nito's code, like you proj and use it): ``` public static async ValueTask AsValueTask(this ValueTask valueTask) =>...

The following code deadlocks: ``` [Test] public async Task NitoMultipleReadThenWriteAsync() { AsyncReaderWriterLock asyncLock = new AsyncReaderWriterLock(); void enterReadThenWrite() { using (asyncLock.ReaderLock()) { } using (asyncLock.WriterLock()) { } } await Task.WhenAll(Enumerable.Range(0,...

I added this to #57 but thought that since it's closed, the repro for an bug there may not have been noticed. Here's the last post from that thread... Basically...

bug

The AsyncManualResetEvent in visualstudio.threading, supports single pulses of the manualresetevent. Can we add something similar in nito? See [source code](https://github.com/microsoft/vs-threading/blob/c5c16ed36542f84bdc0e3babceb22923c6b6be01/src/Microsoft.VisualStudio.Threading/AsyncManualResetEvent.cs#L192)

Something like Ignore but unwrap exception. Are available like that?

This is a useful little helper method. Would be useful for `ValueTask`, too.