[][src]Trait casper_node::reactor::Finalize

pub trait Finalize: Sized {
    pub fn finalize(self) -> BoxFuture<'static, ()> { ... }
}

A drop-like trait for async compatible drop-and-wait.

Shuts down a type by explicitly freeing resources, but allowing to wait on cleanup to complete.

Provided methods

pub fn finalize(self) -> BoxFuture<'static, ()>[src]

Runs cleanup code and waits for a shutdown to complete.

This function must always be optional and a way to wait for all resources to be freed, not mandatory for cleanup!

Loading content...

Implementors

Loading content...