Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ChannelOutputInt channelOutputInt;
- public Producer(ChannelOutputInt channelOutputInt) {
- this.channelOutputInt = channelOutputInt;
- }
- @Override
- public void run() {
- int counter=0;
- while(true){
- channelOutputInt.write(++counter);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement