Debounce, using variable

I am updating a database and then refreshing a table. I am using debounce to delay the refresh of the table so the data is accurate. I would like to declare a variable with the time delay. I have tried declaring a variable it the code menu (where add a query is) and also writing a Java script function that return a number. Debounce does not recognize either the variable or the JS function.

I would like to declare a variable because I have multiple places that I am using Debounce and want the delay to be consistent.

Is triggering the refresh query in the success handler of the update query an option? This ensures that the update query completes before the refresh.

@clay123 I would recommend this as well! Have you tried this approach?