Replying to Avatar Mike Dilger ☑️

Yes it is all asynchronous. Within 'async rust', everything is asynchronous. There is no tricky coding on my part. Every function that says it returns a type T actually returns a future that resolve to a type T and the executor handles running that future to completion, even as that task sometimes returns Poll::Pending instead of Poll::Ready(data) in which case it gets shelved so the thread can keep itself busy with anything else that needs to be done. This is all internal to rust's async system and the executor which I use which is 'tokio' (there is another one async-std, but I don't think it ever got much uptake).

Avatar
Mike Dilger ☑️ 1y ago

I take this back, see other response to the parent.

Reply to this note

Please Login to reply.

Discussion

No replies yet.