[concurrency-interest] Future.isCompletedNormally Future.isCompletedAbnormally

thurstonn thurston at nomagicsoftware.com
Thu Mar 5 01:58:56 EST 2015

What would be the memory consistency effects of 

isCompletedNormally() ==> true      be?

I assume the "asynchronous computation" would happen-before in that case.

Also, just for discussion, what if you have some :

DefaultFuture<T>(default:T, () -> T) implements Future<T>

what would the semantics of isCompletedAbnormally() be in such a case? 
Might burden the implementation unnecessarily in such a case to strictly
implement it.

I'm not sure how FJP uses FJT's methods, but it doesn't necessarily follow
that those methods should be promoted to the base interface.

View this message in context: http://jsr166-concurrency.10961.n7.nabble.com/Future-isCompletedNormally-Future-isCompletedAbnormally-tp12386p12397.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.

More information about the Concurrency-interest mailing list