#NEWLINE# def get( self ) : #NEWLINE# #INDENT# from furious.async import Async #NEWLINE# success_callback = Async ( target = example_function , kwargs = { #NEWLINE# #INDENT# 'it' : 'worked' , #NEWLINE# #UNINDENT# } ) #NEWLINE# async_task = Async ( target = example_function , kwargs = { #NEWLINE# #INDENT# 'trigger' : 'job' , #NEWLINE# #UNINDENT# } , callbacks = { #NEWLINE# #INDENT# 'success' : success_callback , #NEWLINE# #UNINDENT# } ) #NEWLINE# async_task . start ( ) #NEWLINE# logging . info ( 'Async job kicked off.' ) #NEWLINE# self . response . out . write ( 'Successfully inserted Async job.' )