8000 How to cacl the capacity of a channel? · Issue #65 · austinjones/postage-rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How to cacl the capacity of a channel? #65
Open
@ethever

Description

@ethever

In tokio's channel I can calc the channel's using rate by:

let rate = chat_tx.capacity() as f64 / chat_tx.max_capacity() as f64;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0