Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.annotation:annotation:1.0.0-rc01

WorkerThread

public abstract @interface WorkerThread
implements Annotation

androidx.annotation.WorkerThread


Denotes that the annotated method should only be called on a worker thread. If the annotated element is a class, then all methods in the class should be called on a worker thread.

Example:


  @WorkerThread
  protected abstract FilterResults performFiltering(CharSequence constraint);
 

Summary

Inherited methods