(#4862) returning is not a standard Ruby method.
The returning(foo) do ... end idiom used in this method isn't a standard
part of Ruby; it comes from the event-loop better definers code. Since this
is the one occurrence in the source tree, might as well open-code it.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>