It’s dangerous using Wait on a Task and the async keyword together. With applications using the synchronization context(同步上下文), this can easily result in a deadlock.
In the method OnStartDeadlock, the local function DelayAsync is invoked. DelayAsync waits on the completion of Task