execnet.Channel API [rev. unknown]

class Channel(object):

Communication channel between two possibly remote threads of code.

methods:

def __init__(self, gateway, id):

*no docstring available*

def close(self, error=None):

close down this channel on both sides.

def isclosed(self):

return True if the channel is closed. A closed channel may still hold items.

def makefile(self, mode='w', proxyclose=False):

return a file-like object. Only supported mode right now is 'w' for binary writes. If you want to have a subsequent file.close() mean to close the channel as well, then pass proxyclose=True.

def next(self):

*no docstring available*

def receive(self):

receives an item that was sent from the other side, possibly blocking if there is none. Note that exceptions from the other side will be reraised as channel.RemoteError exceptions containing a textual representation of the remote traceback.

def send(self, item):

sends the given item to the other side of the channel, possibly blocking if the sender queue is full. Note that an item needs to be marshallable.

def setcallback(self, callback, endmarker=<object object at 0x70037588>):

*no docstring available*

def waitclose(self, timeout=None):

wait until this channel is closed (or the remote side otherwise signalled that no more data was being sent). The channel may still hold receiveable items, but not receive more. waitclose() reraises exceptions from executing code on the other side as channel.RemoteErrors containing a a textual representation of the remote traceback.

def __del__(self):

*no docstring available*

def __iter__(self):

*no docstring available*

def __repr__(self):

*no docstring available*