(self, pool, args, callback)
If the caller has passed the magic 'single-threaded' flag, call the
        function directly instead of pool.apply_async. The single-threaded flag
         is intended for gathering more useful performance information about
        what happens beneath `call_runner`, since python's default profiling
        tools ignore child threads.

        This does still go through the callback path for result collection.
If the caller has passed the magic 'single-threaded' flag, call the
        function directly instead of pool.apply_async. The single-threaded flag
         is intended for gathering more useful performance information about
        what happens beneath `call_runner`, since python's default profiling
        tools ignore child threads.
If the caller has passed the magic single - threaded flag call the function directly instead of pool . apply_async . The single - threaded flag is intended for gathering more useful performance information about what happens beneath call_runner since python s default profiling tools ignore child threads .
def _submit(self, pool, args, callback):
        """If the caller has passed the magic 'single-threaded' flag, call the
        function directly instead of pool.apply_async. The single-threaded flag
         is intended for gathering more useful performance information about
        what happens beneath `call_runner`, since python's default profiling
        tools ignore child threads.

        This does still go through the callback path for result collection.
        """
        if self.config.args.single_threaded:
            callback(self.call_runner(*args))
        else:
            pool.apply_async(self.call_runner, args=args, callback=callback)
def _submit ( self , pool , args , callback ) : if self . config . args . single_threaded : callback ( self . call_runner ( * args ) ) else : pool . apply_async ( self . call_runner , args = args , callback = callback )