it gets conferred by `task` or `await`
-
-
Our system required functions to be tagged `async` so the compiler could insert param; bifurcates
http://joeduffyblog.com/2015/11/19/asynchronous-everything/ …2 replies 0 retweets 1 like -
Replying to @funcOfJoe @caitp88
speaking of Midori, Rust was able to make cancellation fully RAII. Kind of beautiful.
2 replies 0 retweets 2 likes -
I don't mind tagging, but async function already means something. The presence of `await.cancel` may be sufficient.
1 reply 0 retweets 0 likes -
Replying to @wycats
function fetch(url) { return new Promise((res, rej) => { xhr.oncomplete(res) await.cancel.oncancel(xhr.abort) }); }
1 reply 0 retweets 0 likes -
Replying to @wycats
something along these lines for last mile (arrows capture await.cancel like other meta properties)
1 reply 0 retweets 0 likes -
Replying to @wycats
This is important (run down IOs, etc). The awaiter gets canceled by await-side token too, I assume(?), but that's half the picture.
1 reply 0 retweets 0 likes -
Replying to @funcOfJoe
ran out of space, but promise constructor would reject upon handling cancel request.
1 reply 0 retweets 0 likes -
Replying to @wycats
Sounding really great. If you want an extra pair of eyes on any proposals here, I am happy to help in any way I can.
1 reply 0 retweets 0 likes
-
-
Replying to @wycats
this exchange makes me glad I follow both of you, good stuff
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.