Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Runnable class
package nation.know.aryan.com.poolofthreads.runnable;
import nation.know.aryan.com.poolofthreads.threadPoolClass.MyPool;
/**
* Created by user on 11/1/18.
*/
public class MyRunnable implements Runnable {
MyPool info;
int value;
public MyRunnable(int value, MyPool context) {
info= context;
this.value=value;
}
@Override
public void run() {
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
info.PasInfofromRunnable(value);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.