Skip to content

[camerax] Change unawaited usages to await for calls to stop asynchronous camera operations #132499

@camsim99

Description

@camsim99

Currently, the camera_android_camerax implementation uses unawaited to not wait for calls to stop using certain UseCases and disposing of the camera. This may introduce race conditions as discussed in #115925 (comment).

The unawaited usages should be revisited and only used when there is no way to ensure asynchronous completion on the native side.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: proposalA detailed proposal for a change to Flutterp: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions