Handle empty queue in WaitForPendingWorkAsync
Cancellation allows item removal from the pending work queue from non-UI threads, so the UI thread handling needs to account for the possibility of it being empty after WaitForItemsAsync completes.
Showing
想要评论请 注册 或 登录