Skip to content
Carlyle-Lee edited this page Jun 7, 2020 · 21 revisions

Release Note

English
中文

Quick Access:

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

请参参考Demo 中的相关test 代码。例如 DependantTest、NeedSyncTest 等等。
Please refer to test files in demo for examples such as "DependantTest.java", "NeedSyncTest .java" , etc...

img img img img

API

Clone this wiki locally