Skip to main content

http_type/task/
type.rs

1use crate::*;
2
3/// A type alias for an asynchronous task.
4///
5/// This is a common return type for asynchronous handlers, providing a type-erased
6/// future that can be easily managed by the async runtime.
7pub type AsyncTask = Pin<Box<dyn Future<Output = ()> + Send + 'static>>;