def DataChunker(receiver):
 x = _DataChunker(receiver)
 x.next()
 return x.send

def DataChunker ( receiver ) : x = _DataChunker ( receiver ) x . next ( ) return x . send
produces a function that accepts data that is input into a generator in response to the receiver yielding the size of data to wait on .