What is future and promise in C++?

– The promise object is the asynchronous provider and is expected to set a value for the shared state at some point. – The future object is an asynchronous return object that can retrieve the value of the shared state, waiting for it to be ready, if necessary.

Sizin İçin Seçtik  How do you deal with Future in Flutter?

Leave a Reply

Your email address will not be published. Required fields are marked *