Here is my code:
def callee(): # implement a code to stop the execution of caller() def caller(): callback1 = callee do_somthing() callback2 = callerThanks in adavance.