reactive-async icon indicating copy to clipboard operation
reactive-async copied to clipboard

Add Pool.onQuiescent(Cell)

Open JanKoelzer opened this issue 7 years ago • 2 comments

pool.onQuiescent(cell) {v => …}

Or maybe use Cell.getResult(): Future[V]? This could return if putFinal has been called but pool is still running.

JanKoelzer avatar Jan 29 '18 13:01 JanKoelzer

If the first alternative is used, getResult() could be private.

JanKoelzer avatar Jan 29 '18 13:01 JanKoelzer

I have proposed a fix that adds pool.onQuiescent(cell)(callback). But this might interact unpredictably with quiescentResolveCycles, quiescentResolveCell and quiescentResolveDefaults.

That could be a reason to use Cell.getResult(): Future[V]. But: There might be cases, where the future does not get resolved while pool.onQuiescent(cell) does.

JanKoelzer avatar Jan 31 '18 21:01 JanKoelzer