sendEmptyMessageDelayed:Android

发布于 2024-09-13 03:24:08 字数 39 浏览 1 评论 0原文

这个调用会阻塞吗?或者是在另一个线程中并且控制可以超越这个语句?

Does this call block? Or is it in another thread and control can go beyond this statement?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

逆流 2024-09-20 03:24:08

它不会阻塞。该消息被放入队列中。延迟结束后,处理程序将拾取该信息。

使用哪个线程来运行handleMessage 取决于您使用哪个Handler 将其发送到。

It doesn't block. The message is put into a queue. This is then picked up by the Handler after the delay has expired.

Which thread is used to run the handleMessage depends on which Handler you use to send it to.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文