amazon-chime-sdk-android icon indicating copy to clipboard operation
amazon-chime-sdk-android copied to clipboard

Add informational thread annotations to customer-facing methods

Open tmilovan123 opened this issue 4 years ago • 0 comments

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.

tmilovan123 avatar Apr 09 '21 01:04 tmilovan123