Some comments on the Async RFC 206 (from March 03) at:
https://github.com/osgi/design/tree/master/rfcs/rfc0206

In sections 5.1.1 and 5.1.2 we can read about OSGi Promises where
a Promise is used to monitor the status of an asynchronous
operation, and a Deferred which is used to "complete" (finish and 
set the value for) an asynchronous operation.

I'm quite probably mistaken, but from Computer Science I'm more
used to that the Promise is on the writing side of this equation.
Java on the other hand have decided to use the same instance for
both roles:

            reading:                   writing:
  RFC206:   Promise                    Deferred
  CS:       Future                     Promise
  Java8:    Future/CompletableFuture   CompletableFuture

What's the background on the choice in this RFC?

Best regards
Mike

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to