-
Notifications
You must be signed in to change notification settings - Fork 64
Home
Carlyle-Lee edited this page Jun 7, 2020
·
21 revisions
dependencies {
implementation 'com.iqiyi.taskmanager:taskmanager:1.3.7'
}
TM.postAsync(Runnable); // To run on background thread
TM.postAsyncDelay(Runnable, int);
TM.postSerial(Runnable , String groupName);// Runnable of same group will run in FIFO order.
TM.postUI(Runnable); // To run on UI thread.
TM.postUIDelay(Runnable, int delay);//
//declair a new task to run on background thread.
new Task(){
@Override
public void doTask() {
}
}.postAsync();
请参参考Demo 中的相关test 代码。例如 DependantTest、NeedSyncTest 等等。
Please refer to test files in demo for examples such as "DependantTest.java", "NeedSyncTest .java" , etc...