C
C#•6mo ago
tri

Thread signaling still the best practice?

should i still use thread signaling, e.g. ManualResetEvent? Or that should be replaced by async await? if so what's the equivalent in async await? Thank you for your help!
4 Replies
cap5lut
cap5lut•6mo ago
usually u would want async/await because awaiting something doesnt block the thread. depending on what exactly u want to do there is Channel<T>, SemaphoreSlim and TaskCompletionSource<T> to do some signaling
tri
tri•6mo ago
thank you 🙂
Denis
Denis•6mo ago
$close
MODiX
MODiX•6mo ago
Use the /close command to mark a forum thread as answered