Mcp342x.WaitForConversionAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiates waiting for conversion
C#
protected System.Threading.Tasks.ValueTask WaitForConversionAsync (TimeSpan? waitSpan = default, Action<int> progressCallback = default, System.Threading.CancellationToken cancellationToken = default);
C#
protected System.Threading.Tasks.ValueTask WaitForConversionAsync (TimeSpan? waitSpan = default, Action<int>? progressCallback = default, System.Threading.CancellationToken cancellationToken = default);
member this.WaitForConversionAsync : Nullable<TimeSpan> * Action<int> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Protected Function WaitForConversionAsync (Optional waitSpan As Nullable(Of TimeSpan) = Nothing, Optional progressCallback As Action(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ValueTask
- cancellationToken
- CancellationToken
Token which can be used to cancel the operation
Task which can be used to wait for opertation to finish
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |