SunxiDriver.WaitForEventAsync(Int32, PinEventTypes, CancellationToken) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Chiamata asincrona finché non viene ricevuto un evento di tipo eventType o viene richiesto un annullamento.
protected override System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult> WaitForEventAsync(int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);
override this.WaitForEventAsync : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult>
Protected Overrides Function WaitForEventAsync (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As ValueTask(Of WaitForEventResult)
Parametri
- pinNumber
- Int32
Numero di pin nello schema di numerazione logica del driver.
- eventTypes
- PinEventTypes
Tipi di evento da attendere.
- cancellationToken
- CancellationToken
Token di annullamento di quando l'operazione deve arrestarsi in attesa di un evento.
Valori restituiti
Attività che rappresenta l'operazione di recupero della struttura che contiene il risultato dell'operazione in attesa