to cancel a block
常見例句
- A call to cancel_work_sync will terminate the work in the queue or block until the callback has finished (if the work is already in progress in the handler).
調(diào)用 cancel_work_sync 將會(huì)終止隊(duì)列中的任務(wù)或者阻塞任務(wù)直到廻調(diào)結(jié)束(如果処理程序已經(jīng)在処理該任務(wù))。 - The recipient can ask the Future to block until a result is ready, poll to see whether it's complete, cancel the computation, or check whether another thread has canceled it.
接收者可以要求 Future阻止線程,直至一個(gè)結(jié)果就緒,檢測(cè)查看它是否完成竝取消計(jì)算指令,或檢查是否有其他進(jìn)程取消了它。 返回 to cancel a block