Function ptproxy::utils::with_background

source ·
pub async fn with_background<A: Future, B: Future>(a: A, b: B) -> A::Output
Expand description

a future that resolves when ‘a’ does, but also drives ‘b’ in the meantime. in case ‘b’ ends first, its result is discarded and it keeps polling ‘a’ only.