Skip to content

Commit

Permalink
[Gradle Release Plugin] - pre tag commit: 'v1.5.9'.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandrn-spotify committed Aug 17, 2022
1 parent 0fca101 commit 57ebe8b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=1.5.9-SNAPSHOT
version=1.5.9

GROUP=com.spotify.mobius

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,10 @@
import com.spotify.mobius.runners.ImmediateWorkRunner;
import com.spotify.mobius.runners.WorkRunner;
import com.spotify.mobius.runners.WorkRunners;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import javax.annotation.Nonnull;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InOrder;
Expand Down Expand Up @@ -638,10 +633,11 @@ private static class KnownThreadWorkRunner implements WorkRunner {
@Override
@SuppressWarnings("FutureReturnValueIgnored")
public void post(final Runnable runnable) {
delegate.post(() -> {
workerThread = Thread.currentThread();
runnable.run();
});
delegate.post(
() -> {
workerThread = Thread.currentThread();
runnable.run();
});
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -293,21 +293,22 @@ public WorkRunner get() {
return WorkRunners.from(Executors.newFixedThreadPool(4));
}
});
final Thread thread = new Thread(
new Runnable() {
@Override
public void run() {
for (int i = 0; i < 100; i++) {
mobiusLoop = builder.startFrom("foo");
try {
Thread.sleep(random.nextInt(10));
} catch (InterruptedException e) {
throw new RuntimeException(e);
final Thread thread =
new Thread(
new Runnable() {
@Override
public void run() {
for (int i = 0; i < 100; i++) {
mobiusLoop = builder.startFrom("foo");
try {
Thread.sleep(random.nextInt(10));
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
mobiusLoop.dispose();
}
}
mobiusLoop.dispose();
}
}
});
});
thread.start();

for (int i = 0; i < 1000; i++) {
Expand Down

0 comments on commit 57ebe8b

Please sign in to comment.