Skip to content

Commit 4250564

Browse files
committed
Update executorservice.md
1 parent 3ad4e18 commit 4250564

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notes/executorservice.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ and is kept till a thread is available.
101101

102102
There are three methods to invoke shutdown:
103103

104-
- `void shutdown()`: Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
104+
- `void shutdown()` - Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
105105

106-
- `List<Runnable> shutdownNow()`: Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
106+
- `List<Runnable> shutdownNow()` - Attempts to stop all actively executing tasks, halts the processing of waiting tasks, and returns a list of the tasks that were awaiting execution.
107107

108-
- `void awaitTermination()`:It blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.
108+
- `void awaitTermination()` - It blocks until all tasks have completed execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.

0 commit comments

Comments
 (0)