Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.858 kb

Promised value contention

An issue was raised on the mailing list involving highly concurrent use of Dispatch. Listeners added to the underlying future are handled by thread-pool executor, which executes each listener in its own thread. Many of these threads were observed to be waiting on the assignment of the same lazy val result, severely affecting performance in these conditions.

In this release Dispatch cuts the number of listeners added to its underlying future, reducing contention and improving performance.

Retry handler type variance

Contra-variance is added to type T of dispatch.retry.Success so that inferred subtypes of Promise may also be passed to retry handlers.

In other words, more stuff that you want to compile will now compile.

Jump to Line
Something went wrong with that request. Please try again.