#NEWLINE# def check_as_b_send_completion( self ) : #NEWLINE# #INDENT# '\n        Checks if the current asynchronous send job was completed and terminates\n        immediately.\n        ' #NEWLINE# op_result = ctypes . c_int32 ( ) #NEWLINE# result = self . library . Par_CheckAsBSendCompletion ( self . pointer , ctypes . byref ( op_result ) ) #NEWLINE# return_values = { #NEWLINE# #INDENT# 0 : 'job complete' , #NEWLINE# 1 : 'job in progress' , #NEWLINE# ( - 2 ) : 'invalid handled supplied' , #NEWLINE# #UNINDENT# } #NEWLINE# if ( result == ( - 2 ) ) : #NEWLINE# #INDENT# raise Snap7Exception ( 'The Client parameter was invalid' ) #NEWLINE# #UNINDENT# return ( return_values [ result ] , return_values )