Skip to content

Document cancel safety #359

Description

@eric-seppanen

Would it be possible to document which async fns and trait methods are cancel-safe? I use tokio-tungstenite methods inside the tokio::select! macro, and it's hard for me to tell if this is a supported use case, or if I may be at risk of losing messages.

For example, tokio documents methods that are cancel safe, and adds a # Cancel safety heading to the method documentation (example).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions