Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个调用会阻塞吗?还是在另一个线程中,控制可以超越这个语句?
它不会阻塞。消息被放入队列中。然后在延迟到期后由处理程序拾取。
使用哪个线程来运行 handleMessage 取决于您使用哪个 Handler 将其发送到。