Add WaitHandle::result() method

Summary: Similar to join(), however if the handle is
still pending, result() will throw an exception rather
than block until the handle is done.

Reviewed By: @jano

Differential Revision: D1716446

Signature: t1:1716446:1417642842:987cf32a898a274275ed5793ea37fcc31e14500a