LMJW / test-trait

A example code to use async trait to implment timeout for trait object

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test trait

A simple example of using tokio sleep to implement the timeout for a trait object.

This implementation will allow the trait object to extend the timeout

About

A example code to use async trait to implment timeout for trait object


Languages

Language:Rust 100.0%