MCPcopy Create free account
hub / github.com/Singular/Singular / get

Method get

Singular/LIB/surfex/SwingWorker.java:111–125  ·  view source on GitHub ↗

Return the value created by the construct method. Returns null if either the constructing thread or the current thread was interrupted before a value was produced. @return the value created by the construct method

()

Source from the content-addressed store, hash-verified

109 * @return the value created by the <code>construct</code> method
110 */
111 public Object get() {
112 while (true) {
113 Thread t = threadVar.get();
114 if (t == null) {
115 return getValue();
116 }
117 try {
118 t.join();
119 }
120 catch (InterruptedException e) {
121 Thread.currentThread().interrupt(); // propagate
122 return null;
123 }
124 }
125 }
126
127
128 /**

Callers 3

interruptMethod · 0.45
startMethod · 0.45
getCurrentProjectMethod · 0.45

Calls 2

getValueMethod · 0.95
interruptMethod · 0.80

Tested by

no test coverage detected