zxing-js / browser

ZXing for JS's browser layer with decoding implementations for browser.
MIT License
220 stars 43 forks source link

fix: make stop function awaitable #101

Closed acroquelois closed 2 years ago

acroquelois commented 2 years ago

Link to issue-64

The stop() method of IScannerControls isn't awaitable and, in some case , the method emit DOMException due of the async method switchTorch(). And If we can't await this method isn't possible to properly catch the Exception.

acroquelois commented 2 years ago

PR isn't ready. But the idea is to make stop function awaitable