lost property

  1. @override
Stream<DeviceLoss> get lost

The device's lost promise, as GraphicsDevice.lost: one event, never recoverable — a WebGPU device that is lost stays lost, and the application opens another. dispose is reported here too, as DeviceLossReason.destroyed, before the stream closes.

Watched from the moment the device exists, where it used to start with the first listener: isLost is for the caller that subscribed late, and a device nobody listened to answered false after its GPU was gone.

Implementation

@override
Stream<DeviceLoss> get lost => _lost.stream;