def send_ready(self):
self.lock.acquire()<EOL>try:<EOL><INDENT>if self.closed or self.eof_sent:<EOL><INDENT>return True<EOL><DEDENT>return self.out_window_size > <NUM_LIT:0><EOL><DEDENT>finally:<EOL><INDENT>self.lock.release()<EOL><DEDENT>
Returns true if data can be written to this channel without blocking.
This means the channel is either closed (so any write attempt would
return immediately) or there is at least one byte of space in the
outbound buffer. If there is at least one byte of space in the
outbound buffer, a `send` call will succeed immediately and return
the number of bytes actually written.

:return:
    ``True`` if a `send` call on this channel would immediately succeed
    or fail