Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/BruceEckel/OnJava8-Examples
/ quit
Method
quit
concurrent/QuittableTask.java:13–13 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
private
AtomicBoolean running =
12
new
AtomicBoolean(true);
13
public
void
quit() { running.set(false); }
14
@Override
public
void
run() {
15
while
(running.get())
// [1]
16
new
Nap(0.1);
Callers
nothing calls this directly
Calls
1
set
Method · 0.65
Tested by
no test coverage detected