CameraController operations return async/await Futures, but many of them run synchronously.
For example, CameraController.initalize() calls AVCaptureSession.addInput(), addOutput(), startRunning() etc all of which freeze the UI thread momentarily.
As an alternative, it's recommended that AVCaptureSession operations be called on a dedicated serial DispatchQueue.
CameraControlleroperations returnasync/awaitFutures, but many of them run synchronously.For example,
CameraController.initalize()callsAVCaptureSession.addInput(),addOutput(),startRunning()etc all of which freeze the UI thread momentarily.As an alternative, it's recommended that
AVCaptureSessionoperations be called on a dedicated serialDispatchQueue.