DESCRIPTION

SPY-149: Notify Listeners after Complete.

This changeset honors the fact that setting the status and actually
completing the latch can happen at two different points in time.
Without this change, effects can be observed that a listener is called
but the latch has not been counted down yet, leading to weird effects.

Also see https://github.com/mathieuancelin/play2-couchbase/issues/33
for a dependent issue.

Change-Id: I99686c212d8610299f78078b28d31b7891da8d1c
Reviewed-on: http://review.couchbase.org/31714
Reviewed-by: Natasha Sullivan xxx@xxx.xxx
Tested-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Tate Garrett
date: 2014-01-08 17:16:41.342000000

The change could not be merged due to a path conflict.

Please rebase the change locally and upload the rebased commit for review.

-------------------------------------
author: Natasha Sullivan
date: 2014-01-08 17:18:18.901000000

Change has been successfully cherry-picked as 588043ca697cd0579671db95ead921a6b0b1eed3

-------------------------------------
