You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial description of promise says:
"Promises can also be used to spawn tasks easily."
Could the docs illustrate what this means?
When we are first exposed, in overview, to promises, we read:
"Promises are by default attached. This means, that a cancellation is sent when the promise handles goes out of scope."
Maybe this concept of being "attached" could be described in more detail in the Design seciton?
Does "attached"/"detached" property only apply promise? Word "attached" requires an object. I suppose, a promise is attached to a coroutine.
Docs for generator::get() say:
"// Get the return value. Throws if not ready."
"not ready" imprecise. I think you should define a term "has a ready value", define it for generator and then use the term to define bth get() and ready().
It says it throw, but it doesn't say what the type and the properties of the exception are.
Why does it throw rathe than being UB? The policy for signlling logic errors should be described in the Design section.
Docs for task say:
"Unlike a promise, a task can be awaited or spawned on another executor than it was created on."
Again, we don't know what this spannig is.
The Outline for task implies it cannot be canceled. Is this true?
Docs for detached say:
"Promises are mainly used to spawn tasks easily."
Change "Promises are" to "detached is".
The text was updated successfully, but these errors were encountered:
The initial description of
promise
says:"Promises can also be used to spawn tasks easily."
Could the docs illustrate what this means?
When we are first exposed, in overview, to promises, we read:
"Promises are by default attached. This means, that a cancellation is sent when the
promise
handles goes out of scope."Maybe this concept of being "attached" could be described in more detail in the Design seciton?
Does "attached"/"detached" property only apply
promise
? Word "attached" requires an object. I suppose, apromise
is attached to a coroutine.Docs for
generator::get()
say:"// Get the return value. Throws if not ready."
generator
and then use the term to define bthget()
andready()
.Docs for
task
say:"Unlike a promise, a task can be awaited or spawned on another executor than it was created on."
Again, we don't know what this spannig is.
The Outline for
task
implies it cannot be canceled. Is this true?Docs for
detached
say:"Promises are mainly used to spawn tasks easily."
Change "Promises are" to "
detached
is".The text was updated successfully, but these errors were encountered: