#How to Achieve type erasure of Swift's 'Any' in rust?
2 messages · Page 1 of 1 (latest)
you can implement a trait for all JoinHandle types
2 messages · Page 1 of 1 (latest)
Hello, i want to mock the behavior of RxSwift's 'AnyCancellable' with tokio::Joinhandle. but Joinhandle is generic over its type T. i want to erase it. is this something you can achieve in rust?
you can implement a trait for all JoinHandle types