Package 

Class CTExecutors

    • Method Detail

      • ioTask

         <TResult> Task<TResult> ioTask()

        Use this task when you want to offload some background task

      • ioTaskNonUi

         <TResult> Task<TResult> ioTaskNonUi()

        Use this task when you want to offload some background task

      • mainTask

         <TResult> Task<TResult> mainTask()

        Use this task to execute a runnable to main thread

      • postAsyncSafelyTask

         <TResult> Task<TResult> postAsyncSafelyTask(String featureTag)

        Use this task to execute a job in a sequential fashion for a particular feature

        Parameters:
        featureTag - - name of the feature.
      • postAsyncSafelyTask

         <TResult> Task<TResult> postAsyncSafelyTask()

        Common single thread pool for a particular account.Use this for general purpose single pipe-lining of jobs.

      • taskOnExecutor

         <TResult> Task<TResult> taskOnExecutor(Executor taskExecutor, String taskName)

        Use this task to use your own custom executor for executing jobs & getting callbacks on default executors

        Parameters:
        taskExecutor - - executor on which the provided task will be executed
        taskName - - custom name for the task (e.
      • taskOnExecutorWithName

         <TResult> Task<TResult> taskOnExecutorWithName(Executor taskExecutor, Executor callbackExecutor, String taskName)

        Use this task to use your own custom executor for executing jobs & getting callbacks on the provided callback executors

        Parameters:
        taskExecutor - - executor on which the provided task will be executed
        callbackExecutor - - executor on which the callbacks will be executed
        taskName - - custom name for the task (e.