ButtonExt.ReadAsync Method (Button, CancellationToken)
Asynchronously waits until a Button is clicked. Returns the Button that was clicked.
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
public static Task<Button> ReadAsync( this Button self, CancellationToken ct )
- Type: Button
Button to wait for
- Type: System.Threading.CancellationToken
Optional cancellation token, to cancel the task
In Visual Basic and C#, you can call this method as an instance method on any object of type Button. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).