From dbace2ea4166e5fd196b6ad353fc06b5587bd8d6 Mon Sep 17 00:00:00 2001 From: J Caso Date: Fri, 13 Dec 2024 13:04:01 +0100 Subject: [PATCH] fix: npm run changeset --- .changeset/forty-avocados-allow.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .changeset/forty-avocados-allow.md diff --git a/.changeset/forty-avocados-allow.md b/.changeset/forty-avocados-allow.md new file mode 100644 index 0000000..d5b42ee --- /dev/null +++ b/.changeset/forty-avocados-allow.md @@ -0,0 +1,9 @@ +--- +'@capacitor-mlkit/barcode-scanning': minor +--- + +Introduce a serial DispatchQueue for managing AVCaptureSession operations in a FIFO (First In, First Out) sequence. Configuration tasks are encapsulated within a synchronous block to ensure complete setup before proceeding. Following this, startRunning() is scheduled asynchronously, guaranteeing it executes only after the configuration is fully committed. + +This approach not only prevents the NSGenericException by ensuring proper sequence of operations but also maintains high performance and responsiveness of the application. + +Related PR [fix(barcode-scanning): add delay before starting camera session #188](https://github.com/capawesome-team/capacitor-mlkit/pull/188)