Are async methods supported in custom Macro methods? I'm using the syntax with extended macro container like this:
XXXXContainer : MacroMethodContainer { }
Can my code await async Task returns if the Macro method is calling? Or what's the recommended way to do this if the macro methods need to await a response? I found some really buggy code in this app and the previous dev was using .Result calls which I think are causing deadlocks. I am trying to rewrite this so that we're using Task and await as I've learned from experience that .Result does not work very well.
await
async
Task
.Result
Please advise
No.
Really, noone? This is a pretty simple question. I'd settle for a simple yes or no haha
@Brenden Kehren LOL!!
Just an FYI you can get around this using await and a high timeout ms on the macro. it may not be officially supported but it kinda works; however, the high timeout does not work reliably and will throw exceptions
timeout
Please, sign in to be able to submit a new answer.