How to use try_send

since futures::sync::mpsc has updated to futures::channel::mpsc
the send method has changed.
what will be the follow be in futures 0.3?

a.clone().send().wait().expect

i found try_send method in document but i don't know how to use it
because i see it has new way

polling.ready()

in the code.

To use the ordinary send, you just call it with an await. To use try_send, you can just call it normally like any other function.

I don't know where your polling.ready() is from.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.