Skip to content

rust async: Closing a reader might raise a trap as it actually needs to close a writer #1184

@alexcrichton

Description

@alexcrichton

Today if you create a (reader, writer) pair for streams/futures if the writer is dropped before the reader then when the reader is dropped it'll use the close-readable intrinsic. I think this will raise a trap thoug as it's actually a writable end, not a readable end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    asyncRelated to async/streams in the component model.gen-rustRelated to bindings for Rust-compiled-to-WebAssembly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions