awaitTermination

Set whether the executor should wait for scheduled tasks to complete on shutdown, not interrupting running tasks and executing all tasks in the queue.

Return

a new builder instance

Parameters

awaitTermination

whether the executor needs to wait for the tasks tocomplete on shutdown

See also