--
        if hasPendingOperations():
          poll(500)
        else:
          sleep(500)
    --
    

This works in part. When I enter start, the load is again 50%. When I enter 
stop, the load is ok.

I rewritten in my file the waitFor procedure: 
    
    
    proc waitFor*[T](fut: Future[T]; ms: int = 50): T =
      while not fut.finished:
        poll()
        sleep ms
      
      fut.read
    

It works for me. 

Reply via email to