You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you can derive a class from EventWaitHandle and override its WaitOne overloads in order to implement some desired behavior. However, this logic is completely bypassed if WaitHandle.WaitAny or WaitHandle.WaitAll are used instead, which seems not that useful unless you can guarantee that all waiting will happen through WaitOne.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, you can derive a class from
EventWaitHandle
and override itsWaitOne
overloads in order to implement some desired behavior. However, this logic is completely bypassed ifWaitHandle.WaitAny
orWaitHandle.WaitAll
are used instead, which seems not that useful unless you can guarantee that all waiting will happen throughWaitOne
.So why are these methods virtual?
Beta Was this translation helpful? Give feedback.
All reactions