#NEWLINE# def ProvideCallable( self , target , args , kwargs ) : #NEWLINE# #INDENT# 'Sets the target and the args to be provided to this background request.\n\n    Args:\n      target: A callable for the background thread to execute.\n      args: A tuple of positional args to be passed to target.\n      kwargs: A dict of keyword args to be passed to target.\n\n    Returns:\n      The thread ID of the thread servicing this background request.\n    ' #NEWLINE# with self . _ready_condition : #NEWLINE# #INDENT# self . _target = target #NEWLINE# self . _args = args #NEWLINE# self . _kwargs = kwargs #NEWLINE# self . _callable_ready = True #NEWLINE# self . _ready_condition . notify ( ) #NEWLINE# while ( not self . _thread_id_ready ) : #NEWLINE# #INDENT# self . _ready_condition . wait ( ) #NEWLINE# #UNINDENT# return args . _thread_id