I have a few functions which apply various operations to one sheet.
Function A inserts rows and then resorts the rows after insertion.
Function B replaces cells in certain rows depending on the ID key of that row (ID is just a number in column A).
Functions A and B are triggered independently by timed triggers with no guarantee that they won't be triggered at the same time.
My concern is that Function A and B run at the same time, and while B is working, A does a resort, and therefore B replaces cells in the wrong row.
How does Google handle concurrent triggers in the same project and where the functions act on the same sheet?