Hello everyone. I was trying to accomplish something in a variable's OnWrite script, and noticed that (await ReadAsync()).Value wouldn't work. The message I would get is: "await expression is only allowed within an async function". I think this message is referring to OnWrite as a "non-async function", and is not referring to the ReadAsync function. Am I correct in that understanding? It kinda makes sense that OnWrite needs to respond in a timely manner, but BOL and Script Help didn't really address this, the idea that an OnWrite script is of a different "type" or "class" than a Click script, and that certain coding approaches can't be used in OnWrite. Is this also true of OnOpen, and "On" script types? Any documentation/KBA reference anyone know of that details what can and can't be used where?
Thanks!
-Daniel