Rust-compatible adaptors for Task and AsyncGenerator
Summary: This is a basic implementation of adaptors for coro::Task and coro::AsyncGenerator that are compatible with https://doc.rust-lang.org/std/future/trait.Future.html and https://docs.rs/futures/0.3.13/futures/stream/trait.Stream.html. Note that this performs blocking cancellation which may result in long destruction time/or even deadlocks if a given Task/AsyncGenerator doesn't support inline cancellation. Reviewed By: Imxset21, c-ryan747 Differential Revision: D26938974 fbshipit-source-id: fd043304441931c6f7aa078a1a5fee50ebfa2e90
Showing
Please register or sign in to comment