<@U0CG5M9T4> Answering your question in the above ...
# coroutines
e
@rogeralsing Answering your question in the above thread. There is no much need to have anything like .NET’s
Task.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.