Pcx857x.WaitForEventAsync(Int32, PinEventTypes, CancellationToken) Method

Definition

Async call until an event of type eventType is received or a cancellation is requested.

C#
protected override System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult> WaitForEventAsync (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);

Parameters

pinNumber
Int32

The pin number in the driver's logical numbering scheme.

eventTypes
PinEventTypes

The event types to wait for.

cancellationToken
CancellationToken

The cancellation token of when the operation should stop waiting for an event.

Returns

A task representing the operation of getting the structure that contains the result of the waiting operation

Applies to

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