popErrorScope

inline suspend fun GPUDevice.popErrorScope(): GPUError?(source)

The popErrorScope() method of the GPUDevice interface pops an existing GPU error scope from the error scope stack (originally pushed using GPUDevice.pushErrorScope()) and returns a Promise that resolves to an object describing the first error captured in the scope, or null if no error occurred.

MDN Reference