Suppose I have a function that calls a callback function at a random time (process in the example below). I want to be able to detect when that callback function an
process