This commit is contained in:
@@ -14,7 +14,7 @@ import org.redkale.net.WorkThread;
|
|||||||
*/
|
*/
|
||||||
public abstract class AbstractService implements Service {
|
public abstract class AbstractService implements Service {
|
||||||
|
|
||||||
protected void execute(Runnable runner) {
|
protected void runAsync(Runnable runner) {
|
||||||
Thread thread = Thread.currentThread();
|
Thread thread = Thread.currentThread();
|
||||||
if (thread instanceof WorkThread) {
|
if (thread instanceof WorkThread) {
|
||||||
((WorkThread) thread).runAsync(runner);
|
((WorkThread) thread).runAsync(runner);
|
||||||
|
|||||||
Reference in New Issue
Block a user