Skip to content

Instantly share code, notes, and snippets.

View ashleyfrieze's full-sized avatar

Ashley Frieze ashleyfrieze

View GitHub Profile
@ashleyfrieze
ashleyfrieze / ExtraThreadsService.java
Created January 31, 2022 13:12
A concurrency helper
package uk.org.webcompere.concurrency;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.PreDestroy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.*;