async_kernel
async_kernel copied to clipboard
waiting for a Deferred...
hello, is there a way to extract a result from a deferred? ie.
val await: 'a Deferred.t -> 'a
while this synchronous behaviour goes against the grain of Async, I have a piece of code I don't want to bend out of shape to fit into Async. in particular, this code is already running under the Async lock and I see this hypthetical function as merely about Async performing cycles until the offered deferred itself is determined and the function can then return the desired result. No busy waiting. I have a strong feeling this is already available in some form but I have not found it.