1. 程式人生 > >promise VS future

promise VS future

side writer and ise cer promise produce async producer

Future and Promise are the two separate sides of an asynchronous operation.

promise is used by the "producer/writer" of the asynchronous operation.

future is used by the "consumer/reader" of the asynchronous operation.

promise VS future