def tp_write(fd, buf):
 return get_hub().threadpool.apply_e(BaseException, _write, (fd, buf))

def tp_write ( fd , buf ) : return get_hub ( ) . threadpool . apply_e ( BaseException , _write , ( fd , buf ) )
write bytes from buffer *buf* to file descriptor *fd* .