public interface InterruptibleWait
Defines a generic interface to wait for an event to occur. This interface was
designed for the static
CancelableWaits.await(CancellationToken, InterruptibleWait) method.
See its documentation for further reference.-
Method Summary
Modifier and TypeMethodDescriptionvoidawait()Waits until the implementation defined event occurs.
-
Method Details
-
await
Waits until the implementation defined event occurs. The staticCancelableWaits.await(CancellationToken, InterruptibleWait)method calls this method, see its documentation how it uses this method.- Throws:
InterruptedException- thrown if the current thread was interrupted
-