• d_k_bo@feddit.de
    link
    fedilink
    arrow-up
    8
    ·
    9 months ago

    Great post!

    I ran into this problem when working with gtk-rs. For every async library that you use, you have to look carefully if it requires a specific runtime. If you want to eg. make a HTTP request with reqwest you need to make sure to spawn a task on a tokio runtime running in the background.

  • robinm@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    Interesting idea indeed. I’ve never used async yet, but I’m always surprised at how the problem space seems to be much more complicated than what it initially looks like.

  • syd@lemy.lol
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    9 months ago

    Well, this one goes to my “save but never read” box.

  • Vorpal@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    The example FileDescriptorPollContext doesn’t really work. What if my runtime uses io-uring instead of polling? Those need very different interfaces to be sound. How do you abstract over that.