def __call__(self, *args, **kwargs):
        """Execute the embedded function object asynchronously.

        The function given to the constructor is transparently called and
        requires that "ready" be intermittently polled. If and when it is
        True, the "value" property may then be checked for returned data.
        """
        self.__limit = kwargs.pop('timeout', self.__limit)
        self.__queue = multiprocessing.Queue(1)
        args = (self.__queue, self.__function) + args
        self.__process = multiprocessing.Process(target=_target,
                                                 args=args,
                                                 kwargs=kwargs)
        self.__process.daemon = True
        self.__process.start()
        self.__timeout = self.__limit + time.time()
        while not self.ready:
            time.sleep(0.01)
        return self.value
def __call__ ( self , * args , ** kwargs ) : self . __limit = kwargs . pop ( 'timeout' , self . __limit ) self . __queue = multiprocessing . Queue ( 1 ) args = ( self . __queue , self . __function ) + args self . __process = multiprocessing . Process ( target = _target , args = args , kwargs = kwargs ) self . __process . daemon = True self . __process . start ( ) self . __timeout = self . __limit + time . time ( ) while not self . ready : time . sleep ( 0.01 ) return self . value
Execute the embedded function object asynchronously.

        The function given to the constructor is transparently called and
        requires that "ready" be intermittently polled. If and when it is
        True, the "value" property may then be checked for returned data.