• 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

  • Why isn't calling wait(), notify() or notifyAll() without a synchronized block not a compiler error?

    为什么打电话给wait(),没有同步不是一个编译错误notify()notifyall()?

    youdao

  • At Santorini beach, one small thing like a bottle of sun block will stop people calling you stupid.

    托里尼的海滩上,哪怕只是记住了带上防晒这一小事,你就不会骂作傻瓜

    youdao

  • At Santorini beach, one small thing like a bottle of sun block will stop people calling you stupid.

    托里尼的海滩上,哪怕只是记住了带上防晒这一小事,你就不会骂作傻瓜

    youdao

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

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

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