close


Description:

public Future close (ThreadPoolShutdownMode mode)

Begins shutting down the pool and prevents new submissions.

Parameters:

this

a `DexThreadPool`

mode

shutdown policy for queued work

Returns:

a future that resolves when shutdown completes