elizarov
07/11/2017, 7:57 AMTask.FromResult(...)
, because there is no much need to define functions that return Deferred<T>
(like Task<T>
in .NET). Writing suspend
functions with natural return types is so much nicer and you just return
from them normally and invoke them normally. However, having the corresponding constructors for Deferred
would not harm either.