Dominaezzz

    Dominaezzz

    2 years ago
    Is there a YouTrack issue for
    Closeable
    in stdlib? I remember the verdict being stdlib itself doesn't use it so it won't provide it, but there should a ticket somewhere.
    j

    jw

    2 years ago
    Hopefully kotlinx.io will motivate its inclusion. It's really a pain to not have this and have every library re-invent it with the necessary typealiasing and providing their own
    use
    function
    Dominaezzz

    Dominaezzz

    2 years ago
    🤞🏼
    ilya.gorbunov

    ilya.gorbunov

    2 years ago
    https://youtrack.jetbrains.com/issue/KT-31066 We discussed it recently and decided not to provide it for now and to focus instead on a more versatile resource management pattern. The prototype of that approach will most likely be in kotlinx.io library.
    Dominaezzz

    Dominaezzz

    2 years ago
    Thanks!