Stream: wg-async-foundations

Topic: async/await priority?

Kibeom Kim (May 02 2019 at 06:57, on Zulip):

Hi, I wasn't following the async/await work closely yet, though I was wondering if there was any discussion on supporting priority(or generally, passing a custom config object) on executing an async task. Personally I don't know any other languages with async/await support this, but I think it will be really nice to have. I also searched but couldn't find it.

Kibeom Kim (May 02 2019 at 07:00, on Zulip):

Also, I think priority can be more than just high/normal/low, for example, if it's "I/O heavy" then the scheduler might want to dedicate a IO thread for all "I/O heavy" tasks, which is a pretty common pattern in fact.

nikomatsakis (May 02 2019 at 15:10, on Zulip):

That isn't really something that the async-await language feature addresses; it would be more at the runtime level.

nikomatsakis (May 02 2019 at 15:10, on Zulip):

You might check with the tokio project or perhaps the async ecosystem WG

Kibeom Kim (May 02 2019 at 16:15, on Zulip):

I see. Thanks!

Last update: Jul 16 2020 at 14:15UTC