title: Is there a way to make StringIO reading blocking
body: <p>I've searched through the documentation and searched around but there is nothing said about blocking StringIO objects.</p>
  
  <p>I could create my own file-like object that just simply wraps around StringIO but how is the best way to make it blocking? The only way I know is to use a while loop and a time.sleep(0.1) till there is data available.</p>