Speedify SDK for Android 15.5.0
Loading...
Searching...
No Matches
PooledExecutor Class Referenceabstract

Helper class for running code off the main thread in a shared threadpool. More...

Static Public Member Functions

static Executor getPool ()
 Obtain the shared Executor thread pool.
 
static void execute (Runnable runnable)
 Execute a runnable on a shared threadpool.
 
static ScheduledFuture<?> schedule (Runnable runnable, int delay)
 Schedule a runnable on a shared threadpool after a specified delay.
 

Detailed Description

Helper class for running code off the main thread in a shared threadpool.

Since
7.2

Member Function Documentation

◆ execute()

static void execute ( Runnable runnable)
static

Execute a runnable on a shared threadpool.

Parameters
runnableA runnable to run
Since
7.2

◆ getPool()

static Executor getPool ( )
static

Obtain the shared Executor thread pool.

Returns
the shared thread pool Executor object
Since
11.6

◆ schedule()

static ScheduledFuture<?> schedule ( Runnable runnable,
int delay )
static

Schedule a runnable on a shared threadpool after a specified delay.

Parameters
runnableA runnable to run
delaytime in milliseconds
Since
7.4

The documentation for this class was generated from the following file: