Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. poll for channel: {
  2. mpsc.receiver.poll()
  3. }
  4.  
  5. poll for dispatcher: {
  6. tcpsocket.poll() {
  7. dispatch to mpsc.sender
  8. }
  9. }
  10.  
  11. problem: dispatcher needs to be polled for the channel to make progress
  12.  
  13.  
  14. channel.and_then(|msg| .... does not work. this will get stuck
Add Comment
Please, Sign In to add comment