servicePredictions
An asychronous sequence of current predictions.
Declaration
final var servicePredictions: any AsyncSequence<[ServicePrediction], any Error> { get }Discussion
To act on predictions about wireless service changes, use a for-await-in loop to iterate over events produced by this sequence as conditions change. Each update provides either an array of ServicePrediction instances representing the current set of predictions or throws a ServicePredictionError. Only act on the most recent array of predictions received from the sequence.