Any way to catch a latent function being completed?

I am interested in making a latent function if you can post how do that that would be great!!