Simple helper for executing functions only after others have completed.