Skip to content

Add informational thread annotations to customer-facing methods #267

Open
@tmilovan123

Description

@tmilovan123

Based on the discussions @hokyungh and I had about this issue.
Sometimes some of the exposed methods might do a lot of work on the UI thread, and moving them off UI thread can resolve certain issues.
However, as a consumer of the SDK, we cannot be sure a certain method is safe to be called off UI thread or not. It can be determined by reading the code sometimes, but this approach requires some time and effort.
Suggestion: annotate publicly facing methods with MainThread, AnyThread and WorkerThread accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    • Status

      Tell Us What You Need

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions