maitake: add a "weak task handle" type
hawkw opened this issue · 1 comments
hawkw commented
PR #261 adds a JoinHandle
type to maitake::task
. A task can only have a single JoinHandle
, since there is only one slot for a join waker. However, we could add a "weak task handle" type that allows accessing information about the task without the permission to await its completion and read its output. Unlike JoinHandle
s, this type could be freely cloned. Tokio has an equivalent of this with the AbortHandle
type (currently unstable).
hawkw commented
this may just be "add additional methods to TaskRef
"...