design patterns - future/promise: pickup or delivery? -
I am trying to implement a simple futures module and basically it's C ++'s std :: future
contains a promise
in it and possibly many futures
can get it if originally (if I understand it correctly ), Then prompts
says "I have a ready price for pickup" and future
raises it when it is ready. Have
I ran into a situation where I think the caller would be better to provide you with the flags of any type of output buffer, and fill in the relevant thread buffer, then set flag . So it is no longer the future / promise, but some have inverted, where future
says that "given me a notification when this value to" and promise is done by
I do not know how to look for more information about this method. Is its name
Comments
Post a Comment