Package 

Class BackgroundTaskService


  • 
    public final class BackgroundTaskService
    
                        

    Provides a service for submitting lengthy tasks to run on background threads.

    A TaskType must be submitted with each task, which routes it to the appropriate executor. Setting the correct TaskType is critical as it can be used to enforce thread confinement. It also avoids short-running operations being held up by long-running operations submitted to the same executor.