Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b721490cb | ||
|
|
8a8db34b69 | ||
|
|
28b3510c10 |
@@ -32,8 +32,9 @@ public final class ThreadMod extends Mod
|
||||
public void onServerStarted()
|
||||
{
|
||||
this.modThread().execute(() -> {
|
||||
this.log.add("work on " + Thread.currentThread().getName());
|
||||
// Hand-off before the log entry: tests that see the entry know the task is queued.
|
||||
this.main().execute(() -> this.log.add("result on " + Thread.currentThread().getName()));
|
||||
this.log.add("work on " + Thread.currentThread().getName());
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user