Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)
Returns a new postbox object suitable for use as an Axon inbox.

Keyword arguments:

- notify  -- notify() will be called whenever a message arrives at this inbox.
- size    -- None, or a limit on the maxmimum number if items this inbox can hold (default=None)

        def makeInbox(notify, size = None):
    """\
    Returns a new postbox object suitable for use as an Axon inbox.

    Keyword arguments:

    - notify  -- notify() will be called whenever a message arrives at this inbox.
    - size    -- None, or a limit on the maxmimum number if items this inbox can hold (default=None)
    """
    result = postbox(storage=realsink(notify=notify))
    if size is not None:
       result.setSize(size)
    return result
        


src/k/a/kamaelia-HEAD/Sketches/MH/exceptions/Axon/Component.py   kamaelia(Download)
 
 
from Box import makeInbox,makeOutbox,makeEventInbox
 
 
      for boxname in self.Inboxes:
          if boxname != "control":
              self.inboxes[boxname] = makeInbox(notify=self.unpause)
          else:
              self.inboxes[boxname] = makeEventInbox(notify=self.__receiveEvent)

src/k/a/Kamaelia-0.6.0/Axon/Component.py   Kamaelia(Download)
 
 
from Box import makeInbox,makeOutbox
 
 
      # Create boxes for inboxes/outboxes
      for boxname in self.Inboxes:
          self.inboxes[boxname] = makeInbox(notify=self.unpause)
      for boxname in self.Outboxes:
          self.outboxes[boxname] = makeOutbox(notify=self.unpause)

src/k/a/kamaelia-HEAD/Sketches/MH/exceptions/Axon/AdaptiveCommsComponent.py   kamaelia(Download)
from Component import component
import idGen
from Box import makeInbox, makeOutbox
 
class _AdaptiveCommsable(object):
      """
      name = self._newInboxName(*args)
      self.inboxes[name]=makeInbox(self.unpause)
      return name
 

src/k/a/Kamaelia-0.6.0/Axon/AdaptiveCommsComponent.py   Kamaelia(Download)
from Component import component
import idGen
from Box import makeInbox, makeOutbox
 
class _AdaptiveCommsable(object):
      """
      name = self._newInboxName(*args)
      self.inboxes[name]=makeInbox(self.unpause)
      return name