• Once the message has been sent, the sender can store a reference to the Future object and check periodically for completion, or it can block and wait if needed by calling the get method.

    消息被发送之后,发送者可以保存对Future对象的一个引用并定期检查是否完成,或者,它也可以通过调用get方法来阻塞和等待。

    youdao

  • allows your thread to block - by calling f.get() - to ensure the network calls succeed, or go away by ignoring f altogether.

    可以阻塞线程,再调用f.get()可以让网络调用继续进行或是忽略掉f。

    youdao

  • If you need to block the calling thread for a specific time, then use the pthread_cond_timewait to block the thread.

    如果您需要在指定的一段时间内阻塞发出调用的线程,那么请使用pthread_cond _timewait来阻塞它。

    youdao

  • On the other hand, if the calling thread needs to be blocked for a specific time, then pthread_cond_timedwait is used to block the thread.

    在另外一方面,如果调用线程需要被阻塞一段确定的时间,那么就可以使用pthread_cond _ timedwait来阻塞这个线程。

    youdao

  • I suggest creating a method that logs exception information and calling that method in the catch block of your exception blocks.

    我建议创建一个方法记录异常的信息,并且当出现异常时调用这个方法并遮蔽掉您所抛出的异常。

    youdao

  • I suggest creating a method that logs exception information and calling that method in the catch block of your exception blocks.

    我建议创建一个方法记录异常的信息,并且当出现异常时调用这个方法并遮蔽掉您所抛出的异常。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定