Udostępnij przez


RaspberryPi3Driver.WaitForEventAsync Metoda

Definicja

Wywołanie asynchroniczne do momentu odebrania zdarzenia typu eventType lub zażądania anulowania.

protected internal 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 Friend Overrides Function WaitForEventAsync (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As ValueTask(Of WaitForEventResult)

Parametry

pinNumber
Int32

Numer pinu w schemacie numerowania logicznego sterownika.

eventTypes
PinEventTypes

Typy zdarzeń, które będą czekać.

cancellationToken
CancellationToken

Token anulowania operacji powinien przestać czekać na zdarzenie.

Zwraca

Zadanie reprezentujące operację pobierania struktury zawierającej wynik operacji oczekiwania

Dotyczy