章节名:Ch7/Item39: Consider void futures for one-shot event communication
页码:第266页2019-09-15 01:32:23
Item 38 also notes that a communication channel whose transmitting end is a std::promise and whose receiving end is a future can be used for more than just callee-caller comminunication. Such a communication channel can be used in any situation where you need to transmit information from one place in your program to another.引自 Ch7/Item39: Consider void futures for one-shot event communication