Check if previous callback has been completed

Apologies for any lack of details, first time posting here.

Assuming that the same callback has been fired twice, is there a way to check if the first one has been completed before allowing the second to proceed?

Thank you