Trait tarantool::fiber::async::IntoOnDrop
source · pub trait IntoOnDrop: Future + Sized {
// Provided method
fn on_drop<Fun: FnOnce()>(self, on_drop: Fun) -> OnDrop<Self, Fun> ⓘ { ... }
}
Expand description
Futures implementing this trait can attach a closure
which will be executed when the future is dropped.
See on_drop
.
Provided Methods§
Object Safety§
This trait is not object safe.